Created
          July 21, 2017 06:38 
        
      - 
      
 - 
        
Save abhinavkorpal/43001fc48673fd8a73ee06f0d54e69b6 to your computer and use it in GitHub Desktop.  
    Backslash Character and Special Expressions
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | ‘\b’ Match the empty string at the edge of a word. | |
| ‘\B’ Match the empty string provided it’s not at the edge of a word. | |
| ‘\<’ Match the empty string at the beginning of word. | |
| ‘\>’ Match the empty string at the end of word. | |
| ‘\w’ Match word constituent, it is a synonym for ‘[_[:alnum:]]’. | |
| ‘\W’ Match non-word constituent, it is a synonym for ‘[^_[:alnum:]]’. | |
| ‘\s’ Match whitespace, it is a synonym for ‘[[:space:]]’. | |
| ‘\S’ Match non-whitespace, it is a synonym for ‘[^[:space:]]’. | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment