URL replace with link (includes period and space)

Run Settings
LanguagePHP
Language Version
Run Command
<?php $s = 'Please visit http://google.com. Then return to our site.'; $r = preg_replace('"<a[^>]+>.+?</a>(*SKIP)(*FAIL)|\b(?:https?)://\S+"', '<a href="$0">$0</a>', $s); echo $r;
Editor Settings
Theme
Key bindings
Full width
Lines