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
erofus.com template request
-
- Site Admin
- Posts: 2077
- Joined: 02 Mar 2009, 17:02
-
- Posts: 4
- Joined: 20 Feb 2018, 19:34
Re: erofus.com template request
Thanks for that!
Under the sub-folder tab, you are using the regex of
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:
I am trying to modify the regex so that both of the above examples return a sub-folder name of
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.
Under the sub-folder tab, you are using the regex of
Code: Select all
\.com/comics/(.+)$
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!
Code: Select all
the-comic
I'm probably missing something very simple, but if you could lend a hand, I'd appreciate it greatly.
-
- Site Admin
- Posts: 2077
- Joined: 02 Mar 2009, 17:02
Re: erofus.com template request
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"
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"