Regexp for extracting data in parenthesis and commas
- by anders
So, i have this :
"( ABC,2004 )"
And I would need to extract ABC in a variable and 2004 in another.
So what I have for now is this:
In: re.compile(r'([^)]*,').findall("(
ABC,2004 )")
Out: ['( ABC,']