RegexMatch to have a global flag
Posted: 02 Mar 2021, 13:48
can we have a way to have regexmatch match all instances? probably by using a global flag like g?
Its really annoying having to loop just to have a match in multiple lines of the text. And it is not consistent with regexreplace in my opinion.
Code: Select all
var :=
(
"test 1
test 2
test 3"
)
regexmatch(var, "Og)(test)", match)
msgbox % match.1 " " match.2 " " match.3