07-23-2017, 04:24 PM | #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]) |
||
07-23-2017, 05:10 PM | #527 |
A Hairy Wizard
Posts: 3,070
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 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. |
07-23-2017, 08:54 PM | #528 |
Connoisseur
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
Thanks
|
07-26-2017, 03:53 AM | #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 |
||
07-27-2017, 12:02 PM | #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? |
07-27-2017, 12:36 PM | #531 | |
Grand Sorcerer
Posts: 27,467
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
<b>Page \d+</b><br> <hr/> <a id="p\d+"> |
|
07-27-2017, 03:58 PM | #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. |
|
07-27-2017, 04:00 PM | #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. |
|
07-27-2017, 04:10 PM | #534 |
Member
Posts: 19
Karma: 10
Join Date: Jul 2017
Location: Minnesota
Device: Kindle Voyage & Kindle Fire
|
It's working...THANK YOU!!!!
|
07-27-2017, 04:13 PM | #535 |
Resident Curmudgeon
Posts: 73,661
Karma: 127838198
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
07-27-2017, 04:24 PM | #536 |
Grand Sorcerer
Posts: 27,467
Karma: 192992430
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.
|
07-27-2017, 04:26 PM | #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. |
07-27-2017, 04:28 PM | #538 |
Grand Sorcerer
Posts: 27,467
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
07-27-2017, 04:31 PM | #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 |
07-27-2017, 04:35 PM | #540 | |
Grand Sorcerer
Posts: 27,467
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
http://www.regular-expressions.info/ |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
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 |