Open megapearl opened 2 years ago
|\.( ?(co|pl|link|org|mp4|mkv|avi|pdf)|net)([^a-z]|$)|
should do what you're asking.
While I'm at it, for English sub users I'd recommend changing that to |\.( ?(co|pl|org|mp4|mkv|avi|pdf)|(link|net))([^a-z]|$)|
. It's rare, but entirely possible for an English sentence to start with "net" or "link" following a period.
Thank you for sharing!
First of all I want to say thanks for your great script.
How to adjust regex to not match [spammydomain .net] but match [spammydomain.net] ? In the dutch language the word 'net' is often used in sentences.
I tried to remove the '?' in "http|. ?(co|pl|link|org|net|mp4|mkv|avi|pdf)([^a-z]|$)" at line 29 of sub-clean.sh but that didn't work out.
Thanks in advance,
Regards, Donald.