Forum Moderators: coopster
I have the following perl regular expression that return a string with two HTML comments, that is:
$content = "<!-- DETAILS BEGIN -->this is my string<!-- DETAILS END -->";
($string) = $content =~ /<!--\s*DETAILS\s+BEGIN\s*-->\s*(.*?)\s*<!--\s*DETAILS\s+END\s*-->/gs;
How can this be converted to php?
Any help will be appreciated.
-R