Look at the first few chars within that character class. \w-' the hyphen starts a range (ie: a-z), and whitespace to apostrophe is not a valid range. Perhaps you meant to backslash the hyphen, just as you had to do with the period and the star. Question: do your city names honestly have periods and asterixes (sp?) in them? Perhaps you even want to remove the backslahes from the period and asterix. It would be helpful if you said exactly what you want to check for in the regex./^[\w-'\.\*]*$/
# The way you might want your regex (will remove error) /^[\w-\'\.\*]*$/
In reply to Re: warning using a regexp
by Coruscate
in thread warning using a regexp
by Sihal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |