View Single Post
Old 03-26-2020, 08:26 AM   #5
jeffersonm
Member
jeffersonm began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2017
Device: None
Quote:
Originally Posted by davidfor View Post
There were some extra spaces in what @dunhill posted. And that first quote probably should have been a question mark. I think what he meant was:

Code:
(?P<publisher>.+?) - (?P<author>[^_]+?) - (?P<title>.+)
And the question mark after the plus is to make the matching non-greedy.

To get the comment as well:

Code:
(?P<publisher>.+?) - (?P<author>[^_]+?) - (?P<title>.+?) - (?P<comments>.+)
I haven't tested that in calibre. I did check it using https://regex101.com/.

That appears to work, thank you so much!! I appreciate everyone's help.
jeffersonm is offline   Reply With Quote