I have string similar to this one:
{{something1}} something2 {{something3}} something4
How can I match only "something1" using the preg_match()
function?
I tried:
preg_match("/\{\{(.*)\}\}/si",$content,$matches);
but this matched too much, returning
something1}} something2 {{something3
I tried adding \b
to the pattern, but didn't get what I want that way either.
Could you please help me with this?