I have some string like
Shp 1,737 Plenty Rd, Mill Park VIC 3082
560 High St, Preston VIC 3072
217 Mickleham Rd, Tullamarine VIC 3043
from these i need “VIC” . Can anyone help me to find out a solution using regex or php string function
This is the actual strings… that read from an excel sheet i want the states name from these string like, NSW, ACT, VIC etc
Output
This uses a regex in multiline mode to match the 2 or 3 capital letters preceding a whitespace character and a 4 digit postcode.
I called it
statebecause I live in Australia and these are all Australian states 🙂