i am new to regex and i'm trying to do something :
I want an expression that matchs from one sequence of characters to an other one, that can repeat. For example i have this :
string1 aze string2 eza string3 aze string4 eza string5
And i want to match this
aze string2 aze string4
I have read this : How to match "anything up until this sequence of characters" in a regular expression?
And when i use
aze(.*)*(?=eza)
it matchs
aze string2 eza string3 aze string4
Can someone help me with this if it's possible ?