IM正則表達式使用JavaScript在文件中讀來解析配置文件
例子是
#########################
#####################
#sominfo
#some info
path = thisPath
file = thisFile.txt #this file may need a comment
即時尋找一個正則表達式返回任一
[[path, thisPath],[file, thisFile.txt]]
或
{path: thisPath,file: thisFile.txt} <-- which i'll probably have to do after the fact
所有其他行開始以 「#」? – 2015-02-10 06:46:50
'path'後''文件總是在線? – hwnd 2015-02-10 06:51:56