Hello,
I want to modify my code so that it would match both single and double quotes.
I changed this:
preg_match("/<meta[^>]+name=\\"description\\"[^>]+content=\\"([^\\"]*)\\"[^>]*>/si", $html, $match);
to
preg_match("/<meta[^>]+name=(?:\\"|')description(?:\\"|')[^>]+content=(?:\\"|')([^\\"]*)(?:\\"|')[^>]*>/si", $html, $match);
but it appears that the second code will crash the php without any error / warning.
What am I doing wrong?
Many thanks for help