My solution was worse than most: replace one -> one1one
You are only going to do the replace all for each number and if the “e” is also in eight it is still there for the next set of replace.
A better quick and dirty solution from Mastodon was to just add the common character first:
twone -> twoone
My solution was worse than most: replace one -> one1one You are only going to do the replace all for each number and if the “e” is also in eight it is still there for the next set of replace.
A better quick and dirty solution from Mastodon was to just add the common character first: twone -> twoone
The problem is that 21 is not the only problematic combination.
I just check every substring haha
That’s an esthetic abomination, but very clever