I do have this working, however... but I am facing 1 problem:
var ptrn:RegExp = new RegExp("<"+tag+"(.*?)\/>");
tag can be 'name', 'address', 'phone', etc...
What I am having the problem with, is it is returning everything
before and after the match too..
so for the previous example (<name color="ffffff" size="16" /><address
color="000000" size="20" />), it works like this:
tag = 'name'; // color="ffffff" size="16" <address color="000000"
size="20" />
tag = 'address'; // <name color="ffffff" size="16" /> color="000000"
size="20"
So, what I need to do is not return anything before the "<tag" or
after the "/>"...