that almost works
Nice catch; should have been obvious when I wrote it.
Btw, your lookahead assertion needn’t be quantified: (?=\d) will work exactly as (?=\d+) does, but won’t waste time matching extra digits.
Makeshifts last the longest.
In reply to Re^3: "Commifying" a number
by Aristotle
in thread "Commifying" a number
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |