Regex : Predefined Groups of characters

Groups of characters

  • /s matches a whitespace character
  • /S matches anything except a whitespace character
  • /w a word charaters (a-z, A-Z, 0-9, Persian, Greek, Chinese alphabets, etc)
  • /W anything except a word character
  • /d matches 0..9
  • /D matches anything EXCEPT 0..9

No comments:

Post a Comment