Confused about Regular Expression
Posted: 14 Oct 2017, 04:03
I try to match whole dictionary block by using RegExMatch()
This pattern works like a charm in regex101
but not work with AutoHotkey, here is the code.
This pattern works like a charm in regex101
but not work with AutoHotkey, here is the code.
Code: Select all
while (re_pos := RegExMatch(Text, "O)(\t){0,}for k,v in ([^}]|\s)*+}", re_occur, (re_pos ? re_pos + 1 : 1)))
{
MsgBox % ": " re_occur[0]
}