code_junkie

What special characters must be escaped in regular expressions?

Nov 13th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. .^$*+?()[{
  2.  
  3. ^-]
  4.  
  5. .^$*+?()[{
  6.  
  7. []^-]
  8.  
  9. .^$*
  10.  
  11. sed -e 's/foo(bar/something_else/'
  12.  
  13. sed -e 's/foo[(]bar/something_else/'
Add Comment
Please, Sign In to add comment