I need to figure out how to extract allo occurences of a pattern (eg: AAA | AAA) from a string like the one below:
InputString := "PGA|MGA v _ 914:00 x a: EDA|EFG v 7 913:42 x 5:: PFD|GRM"
RegexMatch(InputString, "([A-Z]{3})\|([A-Z]{3})", Match)
strMessage := "InputString = '" . InputString . "'"
strMessage .= "`nName = '" . Match1 . "'"
MsgBox, % strMessage
I tried this code but it 's clear that it isn't correct.
I also tried:
InputString := "PGA|MGA v _ 914:00 x a: EDA|EFG v 7 913:42 x 5:: PFD|GRM"
Pos:=RegExMatch( InputString, "g)([A-Z]{3})\|([A-Z]{3})", Match)
Msgbox % Match1
But nothing...maybe I'm doing something wrong in the syntax?
UnquotedOutputVar: autohotkey.com/docs/commands/RegExMatch.htm - mszymborski