3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $urlRegex = '#(^|\\b)https?:\/\/[\w.?;:\)"=&_/\#]+#'; $text = 'example url [http://www.example.com/path/index?ATY345=6&index=2#utm=feafet/] blabhablha'; $text = preg_replace($urlRegex, '', $text); print("text is $text \n");
based on W2Bf0
Output for 5.3.18 - 7.2.0
text is example url [] blabhablha