fix url regexp
This commit is contained in:
parent
d96285fe50
commit
5633b9271e
|
@ -126,7 +126,7 @@
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
}
|
}
|
||||||
$links = array();
|
$links = array();
|
||||||
if (preg_match_all('/https:(.*)[ \r]/', $content, $links, PREG_SET_ORDER))
|
if (preg_match_all('/https:(.*)\b/', $content, $links, PREG_SET_ORDER))
|
||||||
{
|
{
|
||||||
echo '<div>External links:</div>';
|
echo '<div>External links:</div>';
|
||||||
foreach($links as $link)
|
foreach($links as $link)
|
||||||
|
|
Loading…
Reference in New Issue