I'd be careful with a character class like that. I haven't tested it, but the ')-' part might try to create a range starting at ')' and ending at ''. This is obviously not what was intended. Just to be safe, I'd be sure to put the '-' at the end of the character class.
In reply to Re: Re: phone number regex (new question)
by revdiablo
in thread phone number regex (new question)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |