Thread: Regex examples
View Single Post
Old 04-18-2014, 10:29 AM   #340
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Looks about right to me, skeeve (without a computer for testing at the moment). You could also put a \K after the </sup> (to 'forget' what matched before). That way it would match only the space he was looking to replace. Not that critical in this example, but sometimes, \K is very handy for simplifying/shortening the replace expression.

Last edited by DiapDealer; 04-18-2014 at 11:47 AM.
DiapDealer is offline   Reply With Quote