How can I match the first occurrence of '(' in this regex
The string is:
mean(DFBg@t=(391,596))
but this pattern: \(?
will match both opening brackets. How would I get the first.
edit: show the code:
>>> import re
>>> string = 'mean(DFBg@t=(391,596))'
>>> x = re.findall('\(', string)
>>> print(x)
['(', '(']