如何读取ini配置文件的指定字符?(已解决)
本帖最后由 自然 于 2013-6-16 19:35 编辑ini文件内容:
pid=20136161745tjh8okm
我只想读取20136161745的字符不要后面的tjh8okm StringRegExp(IniRead(@ScriptDir&"\1.ini", "pid", "pid",""),"(\d+)",3) $pid = IniRead(@ScriptDir&"\Hwnx.ini", "pid", "pid", "未知")
$pid = StringFormat("%.0f",$pid)
MsgBox(0,"pid",$pid) 引二楼$aa = StringRegExp(IniRead(@ScriptDir&"\Hwnx.ini", "pid", "pid",""),"(\d+)",3)
MsgBox(0,"1",$aa)
页:
[1]