Skip to content

Instantly share code, notes, and snippets.

@CodersArts
Created August 26, 2019 15:19
Show Gist options
  • Save CodersArts/95f7845c63592bb718a3020c2d33e7ee to your computer and use it in GitHub Desktop.
Save CodersArts/95f7845c63592bb718a3020c2d33e7ee to your computer and use it in GitHub Desktop.
Regular Expression Unicode string patterns
#codersarts
#unicode string patterns in regular expression
\d : Matches any decimal digit; this is equivalent to the class [0-9].
\D : Matches any non-digit character; this is equivalent to the class [^0-9]
\s : Matches any whitespace character; this is equivalent to the class [ \t\n\r\f\v].
\S : Matches any non-whitespace character; this is equivalent to the class [^ \t\n\r\f\v].
\w : Matches any alphanumeric character; this is equivalent to the class [a-zA-Z0-9_].
\W : Matches any non-alphanumeric character; this is equivalent to the class [^a-zA-Z0-9_].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment