View Single Post
Old 01-30-2014, 08:01 AM   #22
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by cybmole View Post
I need a regex that will transform all letters within a class ="calibre9" span to uppercase
That's fairly easy to accomplish:

Find:<span class="calibre9">(.*?)</span>
Replace:<span class="calibre9">\U\1\E</span>

For more information on converting to and from upper case characters see this older post of mine.

However, if you start out with upper case text, you'll probably also need to convert the text to lower case. Otherwise you'll get all caps text.

.calibre9 { text-transform: lowercase; font-variant: small-caps; }

@theducks: You'll need to add \E at the end; otherwise the final </span> will also be capitalized.
Doitsu is offline   Reply With Quote