I want to replace a character in String to numbers. For instance,
Input: abcdefghia
Output: 1234567891
Actually in instead of numbers could be any other character even in other languages
So my idea is to create a program that replaces characters into characters but in another language. I would like to know best practices how to do such tasks like this.
Here is my solution. We could use regular expression and create patterns for each character and then use method replaceall() for replacing all characters in String