0

I have a problem with my regex, which should detect all echo functions in a string. So right now I have this expression:

/echo(.|\n)*?\(?"(.|\n)*"\)?;/g

This works until you make a break line in the quotes. If you do that, it would match the whole code until the end, as you can see in the picture:

RegExr Image

You can get it here.

What did I wrong? What do I have to change?

Julian Schmuckli
  • 3,681
  • 11
  • 37
  • 64

0 Answers0