View Single Post
Old 02-08-2021, 03:04 PM   #1
Widukind
Junior Member
Widukind began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2011
Device: none
regex for importing books with comment

In Calibre I have a custom column 'comment'.
When I import a book like 'Lewis Carroll - Alice 01 - Wonderland # illustrated' the text after # should go to this column.

Until a year ago I used for this purpose the regex:
(?P<author>(??!\s-\s).)*)\s*-?\s*[0-9]*\s*(?P<series>(??![0-9]?[0-9-]\.?[0-9]*\s-\s).)*)?\s?(?P<series_index>[0-9]+.?[0-9]*)?\s?-?[0-9]*\s*-\s(?P<title>[^#]+)\s?(?P<comment>[#\s].*)?

But this doesn't work anymore: the text 'illustrated' is not added to the comment column but to the comments section in the Metadata screen.

How can I resolve this?
Widukind is offline   Reply With Quote