gnu-regexp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Regexp] parse out the tag's attribute and text fields from a xml node


From: David L. Parker
Subject: [Regexp] parse out the tag's attribute and text fields from a xml node
Date: Tue, 11 Jun 2002 16:16:33 -0500

I'm trying to write a generic regexp that will save the node name in one variable and the text of the node in another variable?

XML node:
<address> 1210 West Dayton Street</address>

/^\<(\w+)\>([^<]+)\<\/\w+\>$/

David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]