I'm not entirely sure if the title makes any sense at all but I'm not sure how to explain any better. I'm trying to match a string that starts with one or more (
's and ends with the same amount of )
's. I've tried many different things but I can't figure out how to do this in regex, or if it's possible at all! Can anyone send me in the right direction?
Examples
Match: (a)
Match: ((a))
Don't match: ((a)
Don't match: ((a)))
etc etc etc, you get the point.