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

Pages : [1] Add a reply
User info remove www
sawayes
Avatar
Jan 10 2012, 7:13 am
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?
Post #1
Edit
Cyan
Avatar
Jan 10 2012, 1:36 pm
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.
Post #2
Edit
sawayes
Avatar
Jan 11 2012, 6:25 am
That worked beautifully. Thank you very much.
Post #3
Edit / Delete
Pages : [1] Add a reply

Return to top