I have the text file which have the contents given below.
"<text title1="Training Area" title2="Test">
<p align="left"><b>HTML</b> Content for the training.<br>
This area will be filled with HTML source code to be displayed into the page.
I want to get the contents only the attribute values of 'title1' and 'title2' in the text tag.
How to get this? Please provide me the solution for this.