I am looking at this regular expressions
<(\\w*)>\\.*</(\\w*)>
Going thru tutorials etc. I understand it as reading, match anything that follows the form
<tag1>blah</tag1>
i.e. an XML element, some text and a closing XML element. However, when I run it on various regular expression checkers for example, Expresso it is not matching what I think it should.
Note: to complicate matters further this regular expression is in Java which as I understand means there are some subtle differences.
What are my missing?
Anything appreciated...
Thanks
<tag1>blah</tag2>or<tag1>blah</tag1>(note closing tag name)?