Regular Expression - 2

Please explaing the functions of pre-defined character classes

The various pre-defined character class are :
1.) \d - any digit 0 to 9
2.) \D- any character that is not a digit
3.) \w - any alphanumeric character[a-z A-z0-9]
4.) \W - any non-alphanumeric character
5.) \s - space characters include the space, tab, and newline character
6.) \S - Any character except space character

2 Likes