erofus.com template request

Post Reply
dskream
Posts: 3
Joined: 20 Feb 2018, 19:34

erofus.com template request

Post by dskream » 30 Apr 2019, 23:47

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

Maxim
Site Admin
Posts: 1029
Joined: 02 Mar 2009, 17:02

Re: erofus.com template request

Post by Maxim » 02 May 2019, 16:32


dskream
Posts: 3
Joined: 20 Feb 2018, 19:34

Re: erofus.com template request

Post by dskream » 04 May 2019, 18:28

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.

Maxim
Site Admin
Posts: 1029
Joined: 02 Mar 2009, 17:02

Re: erofus.com template request

Post by Maxim » 06 May 2019, 13:05

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"

Post Reply