Page 1 of 1

erofus.com template request

Posted: 30 Apr 2019, 23:47
by dskream
https://www.erofus.com

Seems to be arranged similar (but not exactly the same) to 8muses, but the 8muses template doesn't work properly on that site.

Thanks

Re: erofus.com template request

Posted: 02 May 2019, 16:32
by Maksym

Re: erofus.com template request

Posted: 04 May 2019, 18:28
by dskream
Thanks for that!

Under the sub-folder tab, you are using the regex of

Code: Select all

\.com/comics/(.+)$
This works nicely, except that some of the names end in exclamation marks.
I have spent a good number of hours trying to figure out the regex to grab the sub-folder name, but to exclude a trailing exclamation mark if it is there.
I am trying to match both of these:

Code: Select all

.com/comics/the-comic

Code: Select all

.com/comics/the-comic!
I am trying to modify the regex so that both of the above examples return a sub-folder name of

Code: Select all

the-comic
and I am having trouble. I have tried the regex tool at regex101.com and there seem to be some differences between what their tester accepts as valid and what EPF will accept.
I'm probably missing something very simple, but if you could lend a hand, I'd appreciate it greatly.

Re: erofus.com template request

Posted: 06 May 2019, 13:05
by Maksym
Why exclamation mark is a problem? Can I see example of such URL please?

The easiest way to exclude a "!" is like this:

\.com/comics/([^\!]+)

But this will cut the URL once the exclamation mark is found. So if your URL looks like this:

\.com/comics/sub-folder1!/sub-folder2

then the result will be

"sub-folder1"