SELECT ALL TEXT BEFORE “WORD” including the line with “WORD”:
((?s)((^.*)WORD))(.*$)
or
[\s\S]*.*(WORD).*[\s\S]
SELECT ALL TEXT BEFORE AND AFTER “WORD” including the line with “WORD”. This will basically select the entire content of a text_document that has WORD in it:
[\s\S]*.*(WORD).*[\s\S]*
or
(?s)(^.*)(WORD).*[\s\S]
SELECT EVERYTHING AFTER “WORD” including the line with “WORD”:
.*?(WORD)[^z]*
or
^.*(?s)(WORD).*[\s\S]
SELECT EVERYTHING AFTER “WORD” - ONLY on that row
(WORD)+(.*)
SELECT THE LINES THAT HAS THIS 2 WORDS
.*(WORD_1).*?.*?(WORD_2).*
SELECT THE LINES THAT CONTAINS AT LEAST ONE OF THE WORDS
^.*(WORD_1|WORD_2|WORD_3).*$
SELECT IN THE SAME LINE EVERYTHING FROM ONE WORD to ANOTHER WORD
WORD_1(.*?)WORD_5
or
(WORD_1).*?.*?(WORD_5)
SELECT EVERYTHING AFTER “WORD” (BUT LET HIM and all before him)
(?<=WORD)(?s)(.*$)