Win Regex help for TV show scraping
#1
I've been at this all night and I thought I had it working perfectly, until I ran into a series title that actually has numbers in its name.

TV Shows\Hidamari Sketch\Season 2\Hidamari Sketch x365 - Ep 01.mkv.

It seems to fail because the regex thinks that it's episode 365, and the scraper can't find that episode number on the website.

I'm using the following regex that works perfectly if the name doesn't have numbers in it:

<regexp>Season[\._ ]([0-9]+)[\\/][^0-9]+[([0-9]+)[^\\/]*</regexp>

How might I modify this to account for the fact that I know that the episode # will always be preceded by "Ep", with a trailing space?

Thanks.
Reply
#2
Just as usual, as soon as I ask on a forum how to do something, I immediately think of how to do it. Solved it on my own

<regexp>Season[\._ ]([0-9]+)[\\/][^\\/]*(?&lt;=Ep )([0-9]+)[^\\/]*</regexp>
Reply

Logout Mark Read Team Forum Stats Members Help
Regex help for TV show scraping0