I want to prepare regex to match paragraph containing specified word (the Agency). Currently my regex is match text too early. I think that i should use [^] somehow but I have no idea how. Can you help me with that?
\n(\d+.\s+.?the Agency.?)(\n\d+.\s) (https://regex101.com/r/osJPVK/1) I want to match text from "3". to "4." because it contains "the Agency" phrase.
where sucts.
1. The objectives of the STh other arrangements are not inconsistent or in conflict with this licence
or the STC or other relevant statutory requirements.
3. The objectives of the STC referred to in sub-paragraph 1(c) are the:
(a) efficient discharge of the obligations imposed upon transmission licensees by
transmission licences and the Act;
(b) development, maintenance and operation of an efficient, economical consistent therewith) facilitating such competition in the sion Licence: Standard Conditions – 1 April 2022
91
(g) compliance with the Electricity Regulation and any relevant legally binding
decision of the European Commission and/or the Agency.
4. The STC shall provide for:
(a) there to be referred to the Authority for determination such matters arising under
the STC as may be specified in the STC;
(b) a copy of the STC or any part(s) thereof
\n(\d+.\s+.?the Agency.?)(\n\d+.\s) (https://regex101.com/r/osJPVK/1)