Advertisement
p32929

Py Re

May 8th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ...::: Identifiers :::...
  2.  
  3. . > any character (Except for a newline)
  4. \. > a period
  5. \b > whitespace around words
  6. \d > any number
  7. \D > anything but number
  8. \S > anything but space
  9. \s > space
  10. \w > any character
  11. \W > anything but a character
  12.  
  13. ...::: Modifiers :::...
  14.  
  15. () > in between
  16. {a,b} > range(a~b)
  17. [] > range or variance >> Example: [A-Za-z]
  18. + > Match 1 or more
  19. ? > Match 0 or 1
  20. * > Match 0 or more
  21. $ > match EOF
  22. ^ > match beginning of a string
  23. | > either or
  24.  
  25. ...::: Whitespace characters :::...
  26.  
  27. \e > escape
  28. \f > form feed
  29. \n > newline
  30. \r > return
  31. \s > space
  32. \t > tab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement