Quote:
Originally Posted by cybmole
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.