I’m at a loss, I need some help.
The string looks like:
"Hello World
@start some text @end
@start more text @end"
I need a regex pattern which will match anything from @start to the first @end. In this example, we would have two matches (@start (some text) @end). The text inside of the @ tags could contain a newline character.
Any ideas?
This code:
produced 2 matches.
The tricks are:
*?instead of just*)[\s\S]to match really any character, including newline(?...))