I try to come along with RegExMatch, but I don't get it ...
Code: Select all
; here is the string:
str := "W12345.12 blablabla bla M00000.00 bla"
; the RegExMatch captures only the first subpattern:
FileAppend, % RegExMatch(str, "([WM][0-9]{5}\.[0-9]{2})", Match) ; shows 1 because RegExMatch found something
FileAppend, % Match1 "`n", * ; shows W12345.12
FileAppend, % Match2 "`n", * ; is empty but should be M00000.00