Created
August 26, 2019 15:19
-
-
Save CodersArts/95f7845c63592bb718a3020c2d33e7ee to your computer and use it in GitHub Desktop.
Regular Expression Unicode string patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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