03-06-2013, 11:10 AM | #211 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Find: ([[:alpha:],”*])</p>\s*<p\b[^>]*> Replace: \1 Note that there needs to be a space after \1. |
|
03-18-2013, 03:08 PM | #212 |
Member
Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
I scanned through this thread and did not see a solution for this, but I am tryhing to find words in all capitals in my epub. For example: <p class="calibre1">I drove under a sign that said THE MAGNOLIA RANCH.</p> Is there a Regex for finding words with more than one letter in all caps?
|
03-18-2013, 03:34 PM | #213 |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
03-18-2013, 03:59 PM | #214 |
Member
Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
|
03-18-2013, 04:02 PM | #215 |
Well trained by Cats
Posts: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
03-18-2013, 04:21 PM | #216 |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
It works fine with my Sigil 7.1. version. Are you sure that you've selected the regex mode?
If all else fails, you could simply buy the book. No, [[:upper:]] is a POSIX character class and the two curly brackets after it specify 2 or more occurrences. Of course, you'll also need to add two additional curved brackets around the Regex to define the backreference. |
03-18-2013, 04:26 PM | #217 |
Guru
Posts: 970
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
|
|
03-19-2013, 10:41 AM | #218 |
Member
Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
Thank You
I ended up using a combination of both suggestions: [A-Z]{2,}
Thanks so much. Last edited by ReaderRabbit; 03-20-2013 at 07:38 PM. |
06-02-2013, 05:48 PM | #219 |
Member
Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
Is there a Regex that would find a sentence ending with a period but no space after it?
EX: But he seemed glad to sit there.People don’t want to know. I am reading a book that has a lot of these errors in it. VERY annoying . . . would like to fix this. Thanks to all. |
06-02-2013, 05:54 PM | #220 | |
Resident Curmudgeon
Posts: 73,675
Karma: 128176798
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
\.([A-Z]) Code:
\. \1 Last edited by JSWolf; 06-02-2013 at 05:56 PM. |
|
06-02-2013, 06:06 PM | #221 |
Grand Sorcerer
Posts: 12,124
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Why not try
Code:
([a-z])\.([A-Z]) Code:
\1\. \2 |
06-02-2013, 06:29 PM | #222 | |
Member
Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
Thanks
Quote:
Thanks so much. |
|
06-02-2013, 06:37 PM | #223 |
Grand Sorcerer
Posts: 12,124
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Try
Code:
([a-z])([\.\?\!])([A-Z]) and \1\2 \3 Last edited by PeterT; 06-02-2013 at 06:41 PM. |
06-02-2013, 06:41 PM | #224 | |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
this would work: Code:
([a-z])([\.\?!])([A-Z]) \1\2 \3 this is a really great reference: http://www.regular-expressions.info/characters.html Last edited by mzmm; 06-02-2013 at 07:01 PM. Reason: removed inaccurate information |
|
06-02-2013, 06:42 PM | #225 |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
|
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 |