THE (HIGH COURT OF HIMACHAL PRADESH)/ORG, (SHIMLA)/PLACE (Criminal
Appeal No. 235 of 2006)/CASE Judgment Reserved on : (27. 04. 2016)/DATE
Date of Decision : (June 2, 2016)/DATE
Regular expression
re.findall(r'\((.*?)\)\/(DATE)', line)
returns two string
First:
(HIGH COURT OF HIMACHAL PRADESH)/ORG, (SHIMLA)/PLACE (Criminal
Appeal No. 235 of 2006)/CASE Judgment Reserved on : (27. 04. 2016)/DATE
Second:
(June 2, 2016)/DATE
But my required output is
First:
(27. 04. 2016)/DATE
Second:
(June 2, 2016)/DATE
I want '(' to be the last opening bracket of my string and not the first one. Another solution will be If I reverse the string then regular expression has to be changed accordingly but I need some more way to do without reversing the string.