I have an issue with some Arabic text where I need to flip numbers inside a string. So this:
"Some text written in 1982 by someone with m0123456 or 12-to-13"
Should become:
"Some text written in 2891 by someone with m6543210 or 21-to-31"
A regex solution will be great. The more optimized for large strings the better.
Any hints?