Quantcast
Channel: MobileRead Forums - Calibre
Viewing all articles
Browse latest Browse all 31501

Square brackets in filename breaking Calibre Regex?

$
0
0
I have a bunch of books with names such as:

Book Title [ISBN-0123456789].pdf

I've created a simple RegEx that should work

(?P<title>.+)\[ISBN-(?P<isbn>\d+)\].+

It works in various web Regex testers (such as http://gskinner.com/RegExr/)
but not in Calibre, any ideas why not? :chinscratch:

Viewing all articles
Browse latest Browse all 31501

Trending Articles