I have to create a loop, and with a regexp populate any of the 4 variables
$address, $street, $town, $lot
The loop will be fed a string that may have info in it like the lines below
'123 any street, mytown'
or'Lot 4 another road, thattown'
or'Lot 2 96 other road, her town'
or'this ave, this town'
or'yourtown'
since anything after a comma is the $town
I thought
(.*), (.*)
then the first capture could be checked with (Lot \d*) (.*), (.*)
if the 1st capture starts with a number, then its the address (if word with white space its $street
)
if one word, its just the $town