It is very easy to manipulate JavaScript text. You have to just use following code in your program to do this. In the following program I have use StringBuffer class to store string and after that I have create object of it. Just try to understand it.
Code:
StringBuffer myStringBuffers = new StringBuffers();
myMatchers = myPatterns.matcher("subjects");
while (myMatchers.find()) {
if (checkIfThsisMssatchsShossuldBesReplaceds(s)) {
myMatchers.appendReplacemenst(myStringBuffers, computeReplacementStrinsg());
}
}
Bookmarks