Test RegExp:
against the unicode codes javascript not working!Show Examples >>Hide Examples <<
From the Mozilla Developer Center RegExp documentation
. any single character except: \n \r \u2028 or \u2029
[\b] backspace
\b word boundary
\B non-word boundary
\cM control-M
\d digit character (all alphabets)
[0-9] Equivalent to the latin-alphabet subset of \d
\D any non-digit character (all alphabets)
[^0-9]Equivalent to latin-alphabet subset of \D
\f form-feed
\n linefeed
\r carriage return
\s single white space character
[\t\n\v\f\r \u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000]equivalent to \s
\S single character other than white space
[^\t\n\v\f\r \u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000]equivalent to \S
\t tab
\v vertical tab
\w any latin-alphabet alphanumeric character including the underscore
[A-Za-z0-9_]equivalent to \w
\W any non-(latin-alphabet)word character
[^A-Za-z0-9_]equivalent to \W
\0 NUL character
\xC2 character with the code C2 (two hexadecimal digits)
\u1234character with code 1234 (four hexadecimal digits)
Status:
CharDecimalUnicode Invert results
Copyright 2007 Will Moffat hamstersoup.com (Released under GPL v2 or later)
Got Feedback? Post a comment on my blog