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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Looking for a RegEx pattern 1
Help with this 2
adress regex help 4
Split data in field on character return 0
Regex with quotes 6
Excel Transpose Cells in Excel 4
Regex : handling single quotes while parsing csv file 4
Regex pb 5

Back
Top