![]() |
#211 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,611
Karma: 23187563
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. |
|
![]() |
![]() |
![]() |
#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?
|
![]() |
![]() |
Advert | |
|
![]() |
#213 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,611
Karma: 23187563
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#214 |
Member
![]() Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
|
![]() |
![]() |
![]() |
#215 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,985
Karma: 56143930
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
Advert | |
|
![]() |
#216 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,611
Karma: 23187563
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. |
![]() |
![]() |
![]() |
#217 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 970
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
|
|
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#220 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,669
Karma: 130140792
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. |
|
![]() |
![]() |
![]() |
#221 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,269
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Why not try
Code:
([a-z])\.([A-Z]) Code:
\1\. \2 |
![]() |
![]() |
![]() |
#222 | |
Member
![]() Posts: 24
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
|
Thanks
Quote:
Thanks so much. |
|
![]() |
![]() |
![]() |
#223 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,269
Karma: 74007256
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. |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
#225 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |