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 2.7 - Chat Solution for Mobile App -

jquery - Detect current Section with javascript -