String str8 = "Hello, John How are you? {{file:350}} with my name";
My requirement is that I want to replace {{file:350}} with some string. number 350 can change. How will i do this? Is their any approach? I was trying to do in this way but it give me exceptions as java.util.regex.PatternSyntaxException: Illegal repetition...
String stro = str8.replaceAll("{*.?}", "00000");
System.out.println("Stro:"+stro);
Does anybody know other way...to do this