Skip to content

Instantly share code, notes, and snippets.

@uglyeoin
Created September 5, 2018 16:53
Show Gist options
  • Save uglyeoin/6e647d8bc6b8e8e9a30a593ef63eb883 to your computer and use it in GitHub Desktop.
Save uglyeoin/6e647d8bc6b8e8e9a30a593ef63eb883 to your computer and use it in GitHub Desktop.
Which regex-characters must be escaped?
Special characters in regular expressions which have to be escaped are:. \ + * ? [ ^ ] $ ( ) { } = ! < > | : -
And a free escaper
https://www.regex-escape.com/regex-escaping-online.php
and a dummy bit of text to test
@uglyeoin
Copy link
Author

uglyeoin commented Sep 5, 2018

eoin-oliver\is+a*wonderful?person[I^think]we$can(all)agree{somewhat}=to!aor|oxymoron:nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment