java - How can I replace the word with another in a string? -
i have following xml string, in need replace "dddomain1" "dddomain"
i used code below, not working
xmlstring.replaceall("dddomain1","dddomain");
you not need
use replaceall
method regexp.
try
xmlstring = xmlstring.replace("xpsystems114","xpsystems");
Comments
Post a Comment