Regular expression to return text between parenthesis

If your problem is really just this simple, you don’t need regex:

s[s.find("(")+1:s.find(")")]

Leave a Comment