Quote:
Originally Posted by user_none
The following regex will match both cases provided they're no _ within each section.
Code:
[^_]+_(?P<author>[^_]+)_((?P<series>[^_]+)_)?(?P<title>[^_]+)
|
Thanks for the code, I finally got a chance to test it out today. It works great except for the fact that I forgot to mention that I put in the series index after the series name.
- with series:
[**]Genre_AuthorLastName_Series1_Title
[**]Genre_AuthorLastName_Series2_Title
[**]where 1 and 2 are the positions in the series.
- w/out series: Genre_AuthorLastName_Title
Any ideas?