0

I am very new to regular expressions and I am attempting to write one that allows me to validate addresses (specifically, a line 1 of an address. not full) with the following special requirements:

Allowed values: alphanumeric, -, ', ., #, /, (comma), [space]

I've created the following, but it doesn't work for something simple as "110 W Cityline Dr"

Regular Expression: ^[a-zA-Z 0-9.\,#-\'/]*$

EDIT: Per Suggestion, I am using the following: ^[a-zA-Z 0-9-.\,#\'/]*$. This seems to be working.

0 Answers0