![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 106
Karma: 3566
Join Date: Aug 2008
Location: London UK
Device: iPhone 5, Kindle K3, Kindle Voyage
|
5.1.0 bug in "search and replace" regex field
I have a large (202 char) regex saved in the search/replace tab. This was ok at v 5.0.1 and previous versions, but has stopped working at v 5.1.0. When this regex is selected now, the "Test result field" immediately shows "Invalid character at position 63".
For the moment, I have successfully rolled back to v 5.0.1. regards |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The regex engine was changed in the bulk metadata dialog to match th erest of calibre, it's mostly compatible with the old engine, but not entirely so, what is the problem expression?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 106
Karma: 3566
Join Date: Aug 2008
Location: London UK
Device: iPhone 5, Kindle K3, Kindle Voyage
|
The problem expression, which removes the booktype from a title is:
Code:
([\([](?:epub|mobi|azw3*|prc|pdb|pdf|siPDF|rtf|cbr|fb2|(?:multi-)*html*|htmlz|tif|lit|odt|txt|docx*|lrf|[dmehpjlr].+,.+?)[]\)]|\.(?:epub|mobi|azw3*|prc|pdb|pdf|rtf|cbr|fb2|html*|lit|txt|docx*)$) regards |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This will take care of it: https://github.com/kovidgoyal/calibr...2adaa30dcbbf43
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 106
Karma: 3566
Join Date: Aug 2008
Location: London UK
Device: iPhone 5, Kindle K3, Kindle Voyage
|
Thank-you for your rapid response.
regards |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug: Automater substitution of "and" with "&" in author field | mikebw | Library Management | 2 | 04-15-2019 03:39 AM |
Default "find" for Search/Replace regex functions | vr8ce | Editor | 14 | 02-02-2018 10:41 AM |
Search and Replace; delete "author" name from "serie" | roosten | Library Management | 6 | 12-17-2015 11:38 AM |
Choice lists for "Search" and "Replace" | korben | Editor | 7 | 07-18-2014 04:03 PM |
Bug? "Insert metadata as page at start of book" doesnt encode Comments field properly | rollercoaster | Calibre | 2 | 04-24-2010 10:40 PM |