Tuesday, 17 September 2013

Java Replcae String

Java Replcae String

I am try to replace below String
#cit {font-size:16pt; color:navy; text-align:center; font-weight:bold;}
With
#cit {font-size:16pt; color:red; text-align:center; font-weight:bold;}
i am writting a Java code for this
strbuf.toString().replaceAll(Pattern.quote("#cit {font-size:16pt;
color:navy; text-align:center; font-weight:bold;}"), "#cit
{font-size:16pt; color:red; text-align:center; font-weight:bold;}");
but the String not get replace? please help me

No comments:

Post a Comment