Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2021, 07:03 AM   #1
rolgiati
Groupie
rolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the endrolgiati knows the complete value of PI to the end
 
Posts: 164
Karma: 31650
Join Date: May 2011
Location: Asuncion (Paraguay)
Device: Several Kindle 3 KB's
“bogus escape error” in regex

Wanting to remove the parenthesis around the final text between parenthesis at the end of book titles, I tried to replace (.*) \((.*)\)$ with \1 \2 and got the ominous warning:“bogus escape error”

Seem python does not like having the laxt regex character escaped.

But I found a simple bodge to get around the problem.

First step, in Character match, replace ) with )X

Then in Regular expression replace (.*) \((.*)\)X$ with \1 \2

Worked a treat.
rolgiati is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bogus error in save template from custom column rbroberts Library Management 4 04-18-2014 04:54 AM
PDF -> HTML produces bogus PNG's prcek Conversion 4 03-29-2012 07:34 PM
Help: bogus database name! is this really a PalmOS file? newConverter Amazon Kindle 3 06-14-2010 10:49 AM
Bogus ads? Elsi Feedback 6 01-15-2009 05:18 AM


All times are GMT -4. The time now is 07:22 PM.


MobileRead.com is a privately owned, operated and funded community.