Return to Snippet

Revision: 2966
at June 7, 2007 16:24 by rengber


Updated Code
(?<=Message\>)[\S\s]*?(?=\<\/Message)

Revision: 2965
at May 16, 2007 15:35 by rengber


Initial Code
(?<=Message\>)[\S\s]*(?=\<\/Message)

Initial URL

                                

Initial Description
If there will be multiple sets of these tags in a scanned XML string, you need the '?' after the '*' to specify a non-greedy (lazy) match.

Initial Title
Regular Expression to Grab the Content of an XML Element

Initial Tags
xml

Initial Language
Regular Expression