View Single Post
Old 07-30-2018, 01:42 AM   #1
sealbeater
Banned
sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.
 
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
Adding books, need regex help

So, I'm getting ready to add some books and I'm working on my regex and it's almost there but not quite right. Book filename format is as follows:

Stephen King - [The Shining #2] - Doctor Sleep (2013) [9781476727660].azw3

This is my regex

(?P<author>[^_-]+) -?\s*\[(?P<series>[^_0-9-]*)(?P<series_index>[0-9]*)\] - (?P<title>[^_-]+) \((?P<published>[^_-]+)\) \[(?P<isbn>.+)\]

I'm getting matches on all my fields but I have one question.

My Series field shows: The Shining #

How can I remove that "#"? I feel like I did earlier but I forgot how.

Last edited by sealbeater; 07-30-2018 at 01:46 AM.
sealbeater is offline   Reply With Quote