Created
September 19, 2023 02:29
-
-
Save trabulium/d1a64c93844814c3e1c4939dda3703a7 to your computer and use it in GitHub Desktop.
Checks if the string matches any of the forms of Australian Streets, Roads, Alleys, Boulevard, Drive, Esplanade etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pattern = "/\d+[A-Za-z]{0,1}[ ](?:[A-Za-z0-9'.-]+[ ]?)+(?:Alley|Ally|Arcade|Arc|Avenue|Av|Ave|Boulevard|Blv|Blvd|Bvd|Bypass|Bypa|Circuit|Circle|Cir|Ct|Cct|Close|Cl|Corner|Crn|Court|Ct|Crt|Crescent|Cres|Crs|Cul-de-sac|Cds|Drive|Dve|Dr|Esplanade|Esp|Gardens|Green|Grn|Grove|Gr|Heights|Highway|Hwy|Junction|Jnc|Lane|Lane|Link|Link|Loop|Mews|Mews|Outlook|Pane|Parade|Pde|Place|Pl|Ridge|Rdge|Rise|Road|Rd|Square|Sq|Street|ST|St|Terrace|Tce|The|Way|Walk|Box|Driftway)\.?/"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment