Hi,
I am trying to parse this string and not able to get the results that I
need.  Can someone please help.  Thanks in advance. -David

I am trying this:

$string = '<Name><FN>John</FN> <LN>Smith</LN></Name>,
<Name><FN>Susan</FN>            <LN>Miers</LN></Name>
<JobTitle>President</JobTitle>'

$string =~ m/.*(<Name>.+?<\/Name>).*(<JobTitle>.+?<\/JobTitle>)/;

I only want the name in last <Name> tag and the <Jobtitle>  (i.e. Susan
Miers President)

Also, the <FN> and <LN> tag may or may not be there at times.

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to