Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $msg = '
- Here are all URLs:
- ------------------
- google.com
- www.google.com
- http://google.com
- http://www.google.com
- ftp://ftp.google.com
- ';
- $msg = preg_replace("/^.*b(http://)?(www.)[^.]+.comb.*$/m",'',$msg);
- Here are all URLs:
- ------------------
- google.com
- http://google.com
- ftp://ftp.google.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement