Skip to content

Instantly share code, notes, and snippets.

@emaillenin
Created March 9, 2014 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emaillenin/9445799 to your computer and use it in GitHub Desktop.
Save emaillenin/9445799 to your computer and use it in GitHub Desktop.
Removes the opening and the closing brace using regex
"(hey there!)".gsub(/^\(|\)$/,'')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment