notepad++ – Replace All within a Regex Search

I’m not really good with Regular expression, but I’m trying to run a “Replace All” on a conditional regular expression search.

In my regex search (results(.*)continue), I’m trying to find the word “continue” on lines that also have the word “results”. Is there any to replace “continue” of just these search results other than manually changing them?

example:

Results(.*)Continue
This sentence contains the word continue.
Results 2(.*)Continue

to

Results(.*)End
This sentence contains the word continue.
Results 2(.*)End

Thank you.

Read more here: Source link