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

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -