I have a string
which has numbers in words format(with a string prefix). I want to convert it to string with numbers in integer format(string prefix remains as it is ). Here are some sample data of string:
"m.l. one two three four"
"k.f two seven six eight"
"g.h three nine zero four"
What I want each of them to converted to:
"ML1234"
"KF2768"
"GH3904"
I looked around on SO but couldn't find a relevant question(most of the SO questions were related to converting tens,hundreds,thousands to integers).
How can I convert this?