I’m trying to make a preg_match
in my PHP code, but I can't seem to get it to work.
I have these 3 tags
{$success url='http://www.domain.localhost/form-success'}
{$error url='http://www.domain.localhost/form-error'}
{$button title='send form'}
How can I get my preg_match
to accept what I’m trying to do?
I’m trying to get {$button(*)}
out to my match path, and the same I want to do with the 2 others {$success(*)}
and {$error(*)}
Now I think it should look like this
preg_match("/\{\$button(.+?)}/s", $content, $match);
But it still isn’t working, so I hope other people can help me here.