正则测试

Gui, Add, Edit, x16 y10 w450 h20 vRegular gGoMatch,Regular
Gui, Add, Edit, x16 y50 w450 h130 vHaystack gGoMatch,Haystack
Gui, Add, Edit, x16 y204 w450 h160 vResult, Result
Gui, Show, x299 y167 h379 w479, RegExMatchTest
Return
GuiClose:
ExitApp

GoMatch:
Gui,Submit,Nohide
OutPut=
FoundPos:=RegExMatch(Haystack,Regular,OutPut)
;濡傛灉FoundPos涓虹┖鍒欐妸瀹冨唴瀹硅缃负Error,濡傛灉涓嶆槸灏辨妸:鍚庣殑FoundPos寮勮繘鍓嶇殑FoundPos涓?
FoundPos:=(FoundPos="") ? "Error" : FoundPos
Msg=[%FoundPos%] %OutPut%
GuiControl,,Result,%Msg%
Return

正则测试

Gui, Add, Edit, x16 y10 w450 h20 vRegular gGoMatch,Regular
Gui, Add, Edit, x16 y50 w450 h130 vHaystack gGoMatch,Haystack
Gui, Add, Edit, x16 y204 w450 h160 vResult, Result
Gui, Show, x299 y167 h379 w479, RegExMatchTest
Return
GuiClose:
ExitApp

GoMatch:
Gui,Submit,Nohide
OutPut=
FoundPos:=RegExMatch(Haystack,Regular,OutPut)
;濡傛灉FoundPos涓虹┖鍒欐妸瀹冨唴瀹硅缃负Error,濡傛灉涓嶆槸灏辨妸:鍚庣殑FoundPos寮勮繘鍓嶇殑FoundPos涓?
FoundPos:=(FoundPos="") ? "Error" : FoundPos
Msg=[%FoundPos%] %OutPut%
GuiControl,,Result,%Msg%
Return

正则测试

Gui, Add, Edit, x16 y10 w450 h20 vRegular gGoMatch,Regular
Gui, Add, Edit, x16 y50 w450 h130 vHaystack gGoMatch,Haystack
Gui, Add, Edit, x16 y204 w450 h160 vResult, Result
Gui, Show, x299 y167 h379 w479, RegExMatchTest
Return
GuiClose:
ExitApp

GoMatch:
Gui,Submit,Nohide
OutPut=
FoundPos:=RegExMatch(Haystack,Regular,OutPut)
;濡傛灉FoundPos涓虹┖鍒欐妸瀹冨唴瀹硅缃负Error,濡傛灉涓嶆槸灏辨妸:鍚庣殑FoundPos寮勮繘鍓嶇殑FoundPos涓?
FoundPos:=(FoundPos="") ? "Error" : FoundPos
Msg=[%FoundPos%] %OutPut%
GuiControl,,Result,%Msg%
Return

给TA捐赠
共{{data.count}}人
人已捐赠
其他

正则提示菜单

2020-3-9 3:47:44

其他

比如你不能修改代码的情况下怎么禁用他自动按键

2020-3-9 3:50:44

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索