elirang

ED Regex Syntax

May 13th, 2018
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. ED Regex Syntax:
  2.  
  3. a|b Matches a or b
  4. gr(a|e)y Matches gray or grey
  5. . Matches any single character
  6. [abc] Matches a single character a, b or c
  7. [^abc] Matches any single character except a, b or c
  8. [a-z] Matches a single charactor in the range a to z
  9. [a-zA-Z] Matches a single charactor in the range a to z or A to Z
  10. ^ Matches the start of the filename
  11. $ Matches the end of the filename
  12. ( ) Defines a marked subexpression
  13. \n Matches what the nth marked subexpression matched, where n is a digit from 1 to 9
  14. \b Match word boundaries
  15. * Matches the preceding element zero or more times
  16. ? Matches the preceding element zero or one times
  17. + Matches the preceding element one or more times
  18. *? Lazily matches the preceding element zero or more times
  19. +? Lazily matches the preceding element one or more times
  20. {x} Matches the preceding element x times
  21. {x,} Matches the preceding element x or more times
  22. {x,y} Matches the preceding element between x and y times
  23. \ Escape special character
Add Comment
Please, Sign In to add comment