I have a large string where I will see a sequence of digits. I have to append a character in front of the number. lets take an example. my string is..
String s= "Microsoft Ventures' start up \"98756\" accelerator wrong launched in apple in \"2012\" has been one of the most \"4241\" prestigious such programs in the country.";
I am looking for a way in Java to add a character in front of each number.so I am expecting the modified string will looks like...
String modified= "Microsoft Ventures' start up \"x98756\" accelerator wrong launched in apple in \"x2012\" has been one of the most \"x4241\" prestigious such programs in the country.";
How do I do that in Java?