Thanks for replies, The basic thing that I'm intending to do is egt Database Connect - SQL, DBMgrTest and Databases from the below line of XML.
<suite subfamily="Database Connect - SQL" name="DBMgrTest" family="Databases">
Any way of using a better regular expression to get all the three values into $1,$2 and $3 please let me know.