I am hoping someone can assist with a RegEx that will match the following:-
- locality
- Locality
- LocalityName
- locality_name
- locality-name
- suburb
- Suburb
- SuburbName
- suburb_name
- suburb-name
But will NOT match for:-
- locality_pid
- locality_index
- LocalityRef
- street_locality_pid
- street_suburb_pid
The RegEx I am currently using:-
/^(locality|suburb)(?=.*name).*$/img
Matches all except the exact words 'locality' and 'suburb'