Thread: Regex examples
View Single Post
Old 09-08-2013, 07:34 AM   #287
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by BobC View Post
Thanks, the searching isn't difficult - it's the arithmetic transformation that I haven't been able to work out.
AFAIK, you cannot do arithmetic transformations with regular expressions at all (other than adding or removing one or more numerals from an existing number). You'd need a scripting language for it.

If you posted a code snippet of a paragraph with a footnote reference, the actual footnote code and the desired transformation, the regex gurus might come up with a solution.
Doitsu is offline   Reply With Quote