- 🇬🇧United Kingdom joachim
Is the problem that the blank lines of code get turned into P tags?
It would be helpful if the code sample didn't have the regexes in, as those make it look like there's a nasty problem there!
Following code:
function parseUrl ( $url )
{
$r = '!(?:(\w+)://)?(?:(\w+)\:(\w+)@)?([^/:]+)?';
$r .= '(?:\:(\d*))?([^#?]+)?(?:\?([^#]+))?(?:#(.+$))?!i';
preg_match ( $r, $url, $out );
return $out;
}
pasted in php tags, it's not viewed properly, even there is no ending tag.
Example:
function parseUrl ( $url )
{
$r = '!(?:(\w+)://)?(?:(\w+)\:(\w+)@)?([^/:]+)?';
$r .= '(?:\:(\d*))?([^#
+)?(?:\?([^#]+))?(?:#(.+$))?!i';
preg_match ( $r, $url, $out );
return $out;
}
?>
Postponed: needs info
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Is the problem that the blank lines of code get turned into P tags?
It would be helpful if the code sample didn't have the regexes in, as those make it look like there's a nasty problem there!