Thread
:
[ANY] Smart Link Remover
View Single Post
Agent Wesker
Senior Member
Join Date: Apr 2012
04-04-2017 , 14:12 Re: [ANY] Smart Link Remover
#
6
Here is a slightly improved Regex from testing on our server:
((http:[/]{2}|https:[/]{2}|www[.])?[-a-zA-Z0-9]{2,}[.][a-zA-Z]{2,5})
I also modified your code to loop through each match in case of multiple links.
Edit: Fixes have been merged
https://github.com/Totenfluch/SmartLinkRemover
Last edited by Agent Wesker; 04-05-2017 at
08:50
.
Agent Wesker
View Public Profile
Send a private message to Agent Wesker
Find More Posts by Agent Wesker