Regular expressions have eluded me... I need to know, what would be the regular expression to use to create sub-drectories named after the original album name on imagefap.
example:
http://www.imagefap.com/pictures/539833 ... Cappotelli
Out of this url, I'd like to make a sub-directory named Tiffany Cappotelli without the hyphen.
Regular expression to create subdirectories
-
- Site Admin
- Posts: 2077
- Joined: 02 Mar 2009, 17:02
Re: Regular expression to create subdirectories
Well, EPF doesn't offer "replace" functionality with Regular Expresions, only "match" is available. So, if you want a generic RE for this case that would be:
RE: /\d+/(.+?)$
Result: [#1]
But if you know that all gallerie names will consist of 2 words and a hyphen between them, then you could use this one:
RE: /\d+/(.+?)-(.+?)$
Result: [#1] [#2]
RE: /\d+/(.+?)$
Result: [#1]
But if you know that all gallerie names will consist of 2 words and a hyphen between them, then you could use this one:
RE: /\d+/(.+?)-(.+?)$
Result: [#1] [#2]