I have string similar to this one:
{{something1}} something2 {{something3}} something4
How can I match only \"something1\" using the
Try this:
preg_match('|{{([^}]+)}}|si', $content, $matches); echo $matches[1];