View Single Post
Old 09-23-2010, 03:28 PM   #35
Calibreuser
Junior Member
Calibreuser began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2010
Device: nook
Question REGEX help filename parseing


I am fairly new to REGEX but I think I have a handle on it so far in Calibre anyway! Forgive me for skipping ahead I skimmed forum and didnt see my question so if I missed it elsewhere just point me to it thanks

I have some books named like so
Lauthor, Fauthor - series ##- title.ext
Grant, Maxwell - The Shadow 331 - Mark Of The Shadow(b).txt

My best so far is (?P<author>.+) - (?P<series>.+) - (?P<title>[^_]+)

but now the series index is part of series

what is series index Var. name?
and how do I change title section to drop crap at end like (b)
I can rename as needed in most cases

can anyone help me author, series, index, and title out of this

Grant, Maxwell - [The Shadow 331] - Mark Of The Shadow(b).txt

Thanks CalibreUser
Calibreuser is offline