-1

I tried like this "\<\%.*\%\>" in this site(https://www.debuggex.com/) but matched two string. So, I want to match just first one thing in that below line. How can i do?

BLA BLA text text <%eval request("BLA")%> text text <%eval request("BLA")%> text BLA

Thanks in advance.

  • What are you trying to match? Can you give example input and output? Also, [does this answer your question](https://stackoverflow.com/questions/13606905/javascript-regex-to-match-only-a-single-occurrence-no-more-or-less) – Sam Aug 30 '20 at 18:30

1 Answers1

-1

Try this (without global flag):

<%.*?%>

You can find the example here for PCRE: https://regex101.com/r/lcjAvZ/1

Michele Pisani
  • 10,406
  • 3
  • 15
  • 33