I'm trying to select a word that is on the second line, but first I need to check if there is a word on the first line, regex example:
(?<=isaac)select
this is the text
abcdefgisaachijklmnopqrstuvwxyz
abcdefgselecthijklmno
Just to clarify my idea a little
Why doesn't this regex work when isaac precedes select?
How can I solve this?

You can change
issacso it is in a non-capture group, and allow for anything untilselectis present.The
(?s)modifies the.operator so it allows for new lines as well.https://regex101.com/r/qPQH25/1