I was trying to improve my grip over regex. So, i wrote the small code to replace a pattern. The pattern that i want to replace is:
replace: <Node> anything in between</Node> with: <Node> Hello </Node>
The following is the regex that im using: <Node>.</Node>
As per my understanding, a "."(dot) matches everything. But when i run it, it is not doing the needful.
Where am i getting wrong?
P.S: It is not an xml file. Just XML tags in a String.