Replacing data within a string

I have this String "<text x="4" y="781.91" class="st6" v:langID="2057"><v:paragraph v:spLine="0.19685"/><v:tabList/>${Server: webseal_server}$<v:newlineChar/><tspan"

The code belows gets me the data i want, but how do i replace the data? i.e. so that after execution the line now says. ><text x="4" y="781.91" class="st6" v:langID="2057"><v:paragraph v:spLine="0.19685"/><v:tabList/>Name of Webserver<v:newlineChar/><tspan

Thanks - Code following

public Changer(List><String> xmlIn, String[] svgIn,int ArraySize){

for(int a = 0; a <= ArraySize ; a++)

{

temp = svgIn[a];

int start = temp.indexOf("${");

int end = temp.indexOf("}$");

System.out.println(temp.substring(start+2, end));

}

[1154 byte] By [cabbagesa] at [2007-11-26 18:55:19]
# 1
Maybe I missed it. What is your question?
zadoka at 2007-7-9 20:33:26 > top of Java-index,Java Essentials,Java Programming...
# 2
I basically want to replace teh data between {$ and }$ with what the user inputs.I got the start and end index number, i want to replace everything within the index number with a different word.Message was edited by: cabbages
cabbagesa at 2007-7-9 20:33:26 > top of Java-index,Java Essentials,Java Programming...
# 3
You could concatenate multiple substrings? Or use String.replaceAll().
zadoka at 2007-7-9 20:33:26 > top of Java-index,Java Essentials,Java Programming...
# 4

String line = "<text x=\"4\" y=\"781.91\" class=\"st6\" v:langID=\"2057\"><v:paragraph v:spLine=\"0.19685\"/><v:tabList/>${Server: webseal_server}$<v:newlineChar/><tspan";

String updatedLine = line.replaceAll("\\$\\{[^}]+\\}\\$","Name of Webserver");

>

sabre150a at 2007-7-9 20:33:26 > top of Java-index,Java Essentials,Java Programming...