I am weak in writing regular expressions so I'm going to need some help on the one. I need a regular expression that match to section 7.01 and then (a)
Basically with section can be followed by any number like 6.1/7.1/2.1
Examples:
SECTION 7.01. Events of Default. If any of the following events
("Events of Default") shall occur:
(a) any Borrower shall fail to pay any principal of any Loan when and
as the same shall become due and payable, whether at the due date thereof
or at a date fixed for prepayment thereof or otherwise;
I am trying to write an regular expression which can give me groups which contains these
Group 1
SECTION 7.01. Events of Default. If any of the following events
("Events of Default") shall occur:
Group 2
(a) any Borrower shall fail to pay any principal of any Loan when and
as the same shall become due and payable, whether at the due date thereof
or at a date fixed for prepayment thereof or otherwise;
Also there can be more points after (a) like b and so on.
Please help me out in writing an regular expression.
re.Mflag in regex to enable multi-line parsing?