in reply to warning using a regexp
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-\'\.\*]*$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: warning using a regexp
by Abigail-II (Bishop) on Jan 10, 2003 at 11:52 UTC | |
by Sihal (Pilgrim) on Jan 10, 2003 at 13:07 UTC | |
|
Re: Re: warning using a regexp
by Sihal (Pilgrim) on Jan 10, 2003 at 11:22 UTC | |
by Sihal (Pilgrim) on Jan 10, 2003 at 11:32 UTC |