L
L
lookingfor22021-08-15 15:06:32
PHP
lookingfor2, 2021-08-15 15:06:32

How to find a specific string in a string using regular expression?

I need to find what is inside the parentheses
{{include_sample(/global/meta.sample.php)}}
In this example, it is /global/meta.sample.php

Using the expression below, I can find what is inside the curly braces .
\{{([^}]+)\}}
I need to find exactly what
lies between this {{include_sample( and this )}}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2021-08-15
@lookingfor2

https://regex101.com/r/hHIkhQ/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question