Answer the question
In order to leave comments, you need to log in
How to write such a regular expression?
How can you get all matches from a certain amount of text according to such a pattern?
Get the occurrence of the word "test1", then, after it, everything that is possible, any characters, in any sequence, and in any number, but only up to the first encountered word "test2" or, for example, "}}". The characters between these occurrences can be anything.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question