I have to replace the content of this xml string through java
<My:tag>value_1 22
value_2 54
value_3 11</My:tag>
so, this string has been taken from an xml and when I acquire it I have this result:
<My:tag>value_1 22
value_2 54
value_3 11</My:tag>
If I try to replace the content by this way:
String regex = "(<My:tag>)(.*)(</My:tag>)";
String new_string = old_string.replaceAll(regex,"<My:tag> new_stuff </My:tag>");
I get no result. I think because of the 

symbol
but if I try to replace the string without the 

symbol, everything goes fine.
Suggestions? Thanks