View Single Post
Old 10-10-2015, 02:30 PM   #5
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by theducks View Post
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
Thanks ducks. That first one you gave me is perfect because I only need to use small caps on acronyms that are four letters or longer. And if there's a phrase there's always at least one word that's three letters so your regex will get me there and then I'll see the smaller words.

Thanks for the new one too. I'll experiment with it. Might come in handy in the future.
Gregg Bell is offline   Reply With Quote