10-09-2015, 06:44 PM | #1 |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
anybody got a Sigil regex for words with all caps?
I'm looking for words with all caps (in a 57K doc) so I can apply small caps tags to them (if they're signs). Is there a Sigil regex for just finding words with all caps? Or if no Sigil regex, then a LibreOffice regex? Thanks
|
10-09-2015, 06:56 PM | #2 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
Advert | |
|
10-09-2015, 07:12 PM | #3 |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
|
10-09-2015, 08:42 PM | #4 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
That is not perfect, it looks foe 3 or more LETTERS, no spaces, no punctuation
I don't have one for a phrase Maybe you should use inverted logic look for the first Lower (<p.*>)(.+)(\s[a-z]) Replace the opening P tag and wrap the first part in your span, then put the letter back \1<span class="smallcap">\2</span>\3 |
10-10-2015, 02:30 PM | #5 | |
Gregg Bell
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
|
Quote:
Thanks for the new one too. I'll experiment with it. Might come in handy in the future. |
|
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
RegEx Question: H1 ALL CAPS to All Caps | phossler | Sigil | 21 | 02-06-2014 02:44 PM |
Is there RegEx to <span> ALL CAPS text? | phossler | Sigil | 4 | 03-10-2013 02:43 PM |
Keeping small caps when converting from sigil to calibre | sly_skittle | Sigil | 8 | 03-22-2012 05:59 PM |
Help with regex expression for words in all caps | bfollowell | Sigil | 9 | 01-20-2012 05:11 PM |
small caps problem in Sigil | goroke | Sigil | 16 | 08-05-2011 12:14 PM |