I have a string my macro copies to the clipboard.
Wickliffe Court 25 Wickliffe Avenue LONDON N3 3EL
Im trying to extract and store the house/street, town and Postcode in different variables.
To this end, Here I'm first trying to extract the street.
Using
https://regexr.com/
The following code seems to work.
Code: Select all
.*(?=\s[A-Z]{3,})
Spoiler
But I get an empty messge box when I run this through PMC.Code: Select all
MsgBox, 0, , %clipboard% --- I can see PMC has read the clipboard Ok
ex1 := RegExMatch(clipboard , ".*(?=\s[A-Z]{3,})" , varo1) --- I must need to reformat my query because...
MsgBox, 0, , %varo1% --- No result. Empty Box.
there must be something im missing re my regex code when trying to use this basic lookahead algo in PMC.
Again, it seems to work on regexr and Ive had a good look at the documentation on autohotkey....
Anyone here see / understand where im going wrong?
Kind regards everyone. Much Love.