Help with this

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

Guest

Hi,
I am using the following regex to check street address but it fails when I
pass "N' Select". How can I fix his?

^[a-zA-Z\d]+(([\'\,\.\- #][a-zA-Z\d ])?[a-zA-Z\d]*[\.]*)*$

Thanks
 
Then it should not match but my regex is matching it.

DWS said:
Chris,

I applogize for this but. "N' Select" is not a valid USA Address it doesn't
even look valid for europe.

Here are the USA guidelines for addressing mail.
http://pe.usps.gov/text/pub28/welcome.htm

Good Luck
DWS


Chris said:
Hi,
I am using the following regex to check street address but it fails when I
pass "N' Select". How can I fix his?

^[a-zA-Z\d]+(([\'\,\.\- #][a-zA-Z\d ])?[a-zA-Z\d]*[\.]*)*$

Thanks
 
Back
Top