2011-02-13, 19:19
I came up with a complete regex for all of the anime file names that I have come across, and want to see how it works for others. It finds everything that I have thrown at it. My concern is false positives; I have not had any but my library is small.
Code:
[ _-](?:ep|e)?(\d{2,3})(?:[\-\d{2,3}])?[ _-]?(?:[\[]?[\.]?[v][\d][\]]?)?[\da-z ',\!\._-]*(?:[\[\(\{][a-z\d \.,_-]+[\]\)\}][ _-]*)*[\da-z ,_-]*\.(?!.*[\\/].*)