Thread: Regex examples
View Single Post
Old 09-08-2013, 07:34 AM   #287
Doitsu
Wizard
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: 1,910
Karma: 4632610
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