Need a regex

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
Where can I find a regex to check a street address like

45-53 lexington ave
or
34 w. 35th street


Thanks
 
I am using this
^[a-zA-Z\d]+(([\'\,\.\- #][a-zA-Z\d ])?[a-zA-Z\d]*[\.]*)*$

but for some reason it matches 'a and a whitespace afterlike 'a . It should
reject the '
 
try using the Regulator - it'll show you what matches what
I am using this
^[a-zA-Z\d]+(([\'\,\.\- #][a-zA-Z\d ])?[a-zA-Z\d]*[\.]*)*$

but for some reason it matches 'a and a whitespace afterlike 'a . It should
reject the '

:

You might want to check at www.regexlib.com

Hi,
Where can I find a regex to check a street address like

45-53 lexington ave
or
34 w. 35th street


Thanks
 
Back
Top