View Single Post
Old 01-03-2013, 01:54 PM   #3
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 590
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / Bookeen Frontlight / Kobo Mini / Kindle 3 / Nook Color
Quote:
Originally Posted by Danger View Post
Need 2:
Find: ([0-9])([a-z])([a-z])+
Replace: \1<sup>\2\3</sup>+
Where + is really a space
That might be a bit dangerous since there could be other cases which should not be changed (like 50mph).

I use
find: (\s[0-9]+)(st|nd|rd|th)\s
replace: \1<sup>\2</sup>\s

Did I miss any (st|nd|rd|th) in my find statement? (not my native language)
WS64 is offline   Reply With Quote