I want to do a regular expression validation on a form field (city).
However, I'm rather unfamiliar with regular expressions.

How would I rewrite the expression so that it will allow a "-" and a
space.
For Example:  "Wilkes-Barre" or "Los Angeles" would be accepted. 

I can't seem to find anything on CFLib which would allow me to accept
"-" and "spaces"

This is what I have so far:

REFindNoCase("[^a-z0-9]", str)


Thanks,
Mark

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to