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

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

python - Redis Error 8 connecting localhost:6379. nodename nor servname provided, or not known -