Created
July 9, 2014 18:36
-
-
Save dgroft/dfb6db932ad93b4c26b3 to your computer and use it in GitHub Desktop.
Extract contents between parens in a string using RegEx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fetch "grab this part!" | |
Regex.Match("blah blah (grab this part!)", @"\(([^)]*)\)").Groups[1].Value | |
// source: http://stackoverflow.com/questions/378415/how-do-i-extract-a-string-of-text-that-lies-between-two-parenthesis-using-net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment