suppose we want to match all one
(s) between <out>...</out>
in this text (option: dot matches all):
<out>hello!</out>
<nx1>home one</nx1>
<nx2>living</nx2>
<out>one text
text one continues
and at last here ends one</out>
<m2>dog one</m2>
<out>bye!</out>
let's say we use this pattern:
one(?=(?:(?!<out>).)*</out>)
I really appreciate it if someone explains how regex engine process that pattern step-by-step and where it would be(position in the original text) in every phase of processing;(something like accepted @Tim Pietzcker's helpful explanation for this question: Regex - lookahead assertion)
one
(s) betweenout
tags. eg. the third line which contains multipleone
(s) – Dhrubajyoti Gogoi