I'm trying to grab a text enclosed between two words, but the problem is that I can make the regex grab all the text including especial character. Here is an example of what i'm trying to grab:
Example:
Part. 23.00. Random. In this chapter:
(1)Hello 1.
(2)"Hello"2.
Action 10 5th.
I don't want to grab this
Part.12 Hello
Action 12.
I need to grab everything from Part.23 to Part.12 except the "I don't want to grab this" text.
Thank's in advance for the help.
This is my regex: https://regex101.com/r/ginZp8/1
(Sec\.\s*\S+.*\n.*\D.*\D.*|Acts*\D\s.*)