I'm trying to find multiple matches in a specific position in text.
For example, in the following text, I want to find all a=.*; between abcd and xyz
abcd
a=1;
some text
a=2; some text
b=3;
a=4;
xyz
a=5;
a=6;
So it should only match:
a=1;
a=2;
a=4;
and don't match:
a=5;
a=6;
So far I tried the following regex:
(?<=abcd\n)(.*)(?=\nxyz)
which returns the string between 'abcd' and 'xyz' ,but I don't succeed to match all a=.*; inside