Thread: Regex examples
View Single Post
Old 04-20-2019, 05:09 AM   #569
Klecks
Enthusiast
Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.Klecks never is beset by a damp, drizzly November in his or her soul.
 
Klecks's Avatar
 
Posts: 39
Karma: 59154
Join Date: May 2010
Location: Stuttgart, Germany
Device: Kobo H2O, PocketBook Touch HD, Tolino Vision 4
Quote:
Originally Posted by famfam View Post
... To emphasize sentence beginnings by increasing the first letter of each sentence two degrees and bold.

You can try the following expression:

search for:
Code:
(?<!St|Mr|Mrs|<|\d)(<p[^>]*>|\!|\?|\.|…|:)( ?)(»|«|“|”|„)?( ?)([A-ZÖÄÜ])
replace with:
Code:
\1\2\3\4<b>\5</b>
and in the CSS:

Code:
b
{font-weight: bold;
 font-size:1.2em;
 line-height:0.7em;}
Greatings
Klecks.
Klecks is offline   Reply With Quote