Presentation Screenshots Download Support Development Forum    
   

Welcome to the Community Forum.

Here you can discuss with other users or with the author, suggest new features, report bugs, ask for filters creation or correction, etc. Select the forum you wish to read or post below :

Forum
Forum > Filters repository > remove www






3 previous messages, in reverse order :
User info remove www
sawayes
Avatar
That worked beautifully. Thank you very much.
 
Cyan
Avatar
Hi,

yes it's possible to capture only the domain name without the www or the protocol.

Try this regular expression:
^(?:.*?://)?(?:www\.)?([^/]+)

and use $1d in your save path.


You can also remove the tld part (.com) and keep only the real domain name.
^(?:.*?://)?(?:www\.)?([^/]+)\..{3}




I posted a tutorial here:
http://asf.mangaheart.org/index.php?menu=5&f=3

It's a little long but I'm explaining step by step how to capture only a part of the URL.
 
sawayes
Avatar
Love your addon. Great work... I know that it is possible to save files to directory named for the domain. Is it possible to remove www. from the directory so that instead of www.download.com it would just be download.com?