Andy, ColdFusion has excellent XML support. No reason to use Regex. First you'll need to parse the file into XML with XMLParse(). Then you can access the elements like this...
<cfset xmlFile = XmlParse(fileContents)/> <cfset FirstName = xmlFile.XmlRoot.FirstName.XmlText/> <cfset LastName = xmlFile.XmlRoot.FirstName.XmlText/> -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Monday, February 20, 2006 4:10 PM To: CF-Talk Subject: Quick Regex question I need to pull some text out of XML and I wanted to see how that might work. I've got this text: <Firstname>Jason</Firstname> <Lastname>Martin</Lastname> I want to get the contents of each of these XML nodes. What might be the best way of doing this? <!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232961 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

