Replace all characters with in two tags using Regular expressions in Java
We can do the string functions like replace and find using simple regular expressions easily.Regular expression is easier to use with javascript replace function. Here are the regular expressions to replace the entire contents occur between two tags in Java. Here, for example the regular expression removes the content in <-! Tag -> and <-! End Tag ->. In java we need to use Pattern ...
Read more...