10-17-2021, 07:03 AM | #1 |
Groupie
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. |
|
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 |