This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.