Home: Perl Programming Help: Regular Expressions:
Need Help with Regular Expression

New User

Nov 17, 2009, 5:57 AM

Views: 5895
Need Help with Regular Expression

Hi I am trying to use regular expression to read from an XML string and based on whats been read (login name) , I am trying to use another query to fetch the first name,lastname,id of that particular login.

Here is the string

<?xml version="1.0"?><poc_list name="node"><poc notify="on" userType="login" includeHistory="off">fieldwatch</poc></poc_list>

The field I am trying to read is fieldwatch which is the login name in a table called user.

i need help in reg exp to read that login name and use that with a query in array to read user first_name,last_name from another table called user.

Please help. greatly appreciated.