![]() |
#526 | ||
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
I'm looking to correct some scan errors for the letter I.
Quote:
Quote:
Code:
(?!(?i)(Chapter 1(\s?|<)|Part 1|Section 1|Book 1)) ([1|l]) |
||
![]() |
![]() |
![]() |
#527 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,361
Karma: 20212223
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
This works:
"(?<!Chapter|Book|Part) ([1|l]) " (without the quotes) But you need to start the search at the beginning of the area...eg make sure the cursor isn't in the middle of the word "Chapter" or something. |
![]() |
![]() |
![]() |
#528 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
Thanks
|
![]() |
![]() |
![]() |
#529 | ||
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
Here a regex I find useful for finding & correcting contractions that have spaces in them. Don't blast this with a replace all as it does match false positives where a word has been shortened to only a single letter.
Target text. Quote:
Quote:
Code:
Search \b(\s(‘|’)|(‘|’)\s)(d|m|s|t|ll|re|ve)\b(?!’) Replace ’\4 |
||
![]() |
![]() |
![]() |
#530 |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
How would I remove
<b>Page 3</b><br> <hr/> <a id="p4"> I have tried [0-9]+<b>Page 3</b><br> <hr/> <a id="[0-9]+"> I have read through the manual and viewed a video on youtube and I seem to be missing something when I try to out in pdf to mobi conversion... what am I doing wrong? |
![]() |
![]() |
![]() |
#531 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
<b>Page \d+</b><br> <hr/> <a id="p\d+"> |
|
![]() |
![]() |
![]() |
#532 | |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
Quote:
<b>Page 3</b><br> <hr/> <a id="p4"></a> I couldn't get that to work and I am wondering if I am not posting all of it. The full thing is... <br> <b>Page 3</b><br> <hr/> <a id="p4"></a><b>Generated by ABC Amber LIT Conv<a href="http://www.processtext.com/abclit.html">erter, http://www.processtext.com/abclit.html</a></b><br> I can remove the generated by abc part no problem and at times if I remove [hr/] helps... but it is the page numbers. |
|
![]() |
![]() |
![]() |
#533 | |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
Quote:
Last edited by niijii; 07-27-2017 at 04:07 PM. |
|
![]() |
![]() |
![]() |
#534 |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
It's working...THANK YOU!!!!
|
![]() |
![]() |
![]() |
#535 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,986
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#536 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Matching a digit 0 or more times doesn't really make sense when there's never going to be no digit (though it will still work in this instance). Matching one or more digits [0-9]+ makes more logical sense. And \d+ is even simpler, since it's the exact same thing, but shorter and easier to type.
|
![]() |
![]() |
![]() |
#537 |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
I have > every so often in the text... how would I remove this?
Thank you so much for this. |
![]() |
![]() |
![]() |
#538 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#539 |
Member
![]() Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
It worked! Thank you to you both!
I wish there was simple instructional videos for this ![]() |
![]() |
![]() |
![]() |
#540 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
http://www.regular-expressions.info/ |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Examples of Subgroups | emonti8384 | Lounge | 32 | 02-26-2011 06:00 PM |
Accessories Pen examples | Gunnerp245 | enTourage Archive | 15 | 02-21-2011 03:23 PM |
Stylesheet examples? | Skitzman69 | Sigil | 15 | 09-24-2010 08:24 PM |
Examples | kafkaesque1978 | iRiver Story | 1 | 07-26-2010 03:49 PM |
Looking for examples of typos in eBooks | Tonycole | General Discussions | 1 | 05-05-2010 04:23 AM |