In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Scott) wrote:

> here are two regexps that might do what you want
> "\w" matches alphanum (1-9a-zA-z)

(0-9a-zA-Z_) actually.  Don't forget that zero and underscore!

> IMO, the best way to check for non-alphanum chars is
> to check for "\W" (upper case is negation of alphanum,
> which will match only non-alphanum).

Yep, works nicely as long as including the underscore as one of the 
alphanumeric character is acceptable for your purposes.


PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to