I have this example:
This is a simple test text.
Yet another line.
START: This is the part that
needs match.
This part does not need
capture.
Wherever else text.
I want to match this part:
START: This is the part that
needs capture.
The point is I know the START: is there and it ends with a new line that has anything but a space after it.
I have tried a lot of combinations starting from: START: (.*?)
I have plaid around with \r and anything I could think of to match only if it has no white-space.
I am not a noob asking because I am lazy. I spent a few hours before asking.
How about this:
This assumes that all lines are newline-terminated.