Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2022, 03:24 PM   #1
DyckBook
Morlock
DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.
 
DyckBook's Avatar
 
Posts: 34
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
Indexerror: No such group

Happy New Year

I have a poorly converted book that has a lot of 0's that were scanned as o's, but, Regex should help me find and fix those. Trying the search term of (\d)o and the replace term of \10 resulted in the above error, which on the face of it is correct. Not what I wanted but correct all the same.

So the question is, just how do I rephrase the replace term so that it knows that I want to replace group 1 and not group 10?
DyckBook is offline   Reply With Quote
Old 01-01-2022, 04:31 PM   #2
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 516
Karma: 2268308
Join Date: Nov 2015
Device: none
Use
Code:
\x30
instead of 0.
Sarmat89 is offline   Reply With Quote
Advert
Old 01-01-2022, 06:12 PM   #3
DyckBook
Morlock
DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.
 
DyckBook's Avatar
 
Posts: 34
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
Thanks. Works great.
DyckBook is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre help? IndexError: list index out of range ideamutt Editor 5 01-08-2025 02:26 PM
calibredb add: IndexError: list index out of range sws Library Management 4 03-28-2015 01:25 AM
IndexError in ebook viewer Section8 Library Management 2 10-30-2014 07:51 AM
Conversion error IndexError: list index out of range trebor6691 Conversion 4 02-20-2014 12:13 AM
Unutterably Silly The Non-Support Group for People Who Don't Have/Want a Support Group Non-Group recluse Lounge 7 11-23-2010 02:15 AM


All times are GMT -4. The time now is 12:37 PM.


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