2009-02-11, 22:43
I thought this might be the best place to post this question.
I'm looking to develop a regex or few for the Anime TV Series I have. I plan on doing one for movies and OVAs too, but that's later.
Here is what I have now.
I have excluded the "Season" part and just focusing on the file name for right now. This line will get, as far as I understand, almost all of the files I have. I am running into a few files that are giving me trouble. Also i'm not sure if i'm making the line properly since it's also matching the character to the left, and to the right of the string I actually want to match. Here is a list of files that are giving me issues:
In order to test the line I've been using this site here: http://regexpal.com/
The issues i'm having are regarding double episodes, where it doesn't pickup the second episode. The group names that are abbreviated similar to the characters around the episode numbers. Codec names appearing similar to the episodes. And the "Ep" that appears in front of wolf's rain.
I'm very new to regular expression so please forgive my ignorance.
I'm looking to develop a regex or few for the Anime TV Series I have. I plan on doing one for movies and OVAs too, but that's later.
Here is what I have now.
Code:
[-_ .]([0-9]+)[-_ \[\].v(]
I have excluded the "Season" part and just focusing on the file name for right now. This line will get, as far as I understand, almost all of the files I have. I am running into a few files that are giving me trouble. Also i'm not sure if i'm making the line properly since it's also matching the character to the left, and to the right of the string I actually want to match. Here is a list of files that are giving me issues:
Code:
[Bleach-Society]Bleach_-_73-74[Xvid][C03A425E].avi
[Lunar] Bleach - 52-53 [B937F496].avi
[Lunar] Bleach - 67 v2 [A1C97A64].avi
[Lunar] Bleach - 68-69 [C23724B5].avi
[m.3.3.w] Chaos Head - 01v2 (H.264) [094A3E22].mkv
[a4e]Get_Backers_20[divx5.2.1].mkv
[a4e]Get_Backers_21v2[h.264].mkv
[a4e]Mahoromatic_Summer_Special[divx5.1.1].mkv
[B-G_&_w.0.0.f]_Shigofumi_Opening.DVD(H.264_DD2.0)_[91FDE4D2].mkv
[Exiled-Destiny]_Wolfs_Rain_Ep01_(6F7967EA).mkv
In order to test the line I've been using this site here: http://regexpal.com/
The issues i'm having are regarding double episodes, where it doesn't pickup the second episode. The group names that are abbreviated similar to the characters around the episode numbers. Codec names appearing similar to the episodes. And the "Ep" that appears in front of wolf's rain.
I'm very new to regular expression so please forgive my ignorance.