![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2018
Device: Kindle typically
|
Regex working in wizard but not during conversion
When I test many regexes with the regex builder wizard, they work perfectly, but when I execute them, they often aren't functioning. The only way I've been able to get them to work is by breaking the regex up into very small pieces.
Here's how the regex would look ideally Code:
<i>Book title Here</i>, Page [\d]+<br> .1990 PUBLISHING COMPANY, Revised 7/99, www.website.org<br> <hr/> If I try this regex when converting, I get no matches and the text remains. Has anyone seen this before? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you can always use the debug pipeline section of the conversion dialog to see exactly what html the conversion system sees, to figure outwhy the regex is not working.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2018
Device: Kindle typically
|
Thanks so much, that did the trick! There were unprintable characters that were screwing up the matching. Unfortunately the wizard ignores them but the actual processor does not.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editor: conversion to lowercase with regex | Sam Sahara | Editor | 1 | 05-13-2018 06:51 AM |
Free (Kindle) Forged in Death by Jim Melvin [Wizard vs Wizard Epic Quest Fantasy] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 3 | 01-10-2015 12:54 AM |
Conversion and Regex Help | thedevilsjester | Calibre | 0 | 07-16-2010 06:10 PM |
Need help with a conversion regex - can't match newline | ereader123 | Calibre | 2 | 03-29-2010 10:58 AM |