RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
<!\[CDATA\[([^\]]*)\]\]>
Description
for getting cdata from and xml document. cdata returns in $1. it's not perfect as you can see from the non-matching examples. improvements needed - but this works for most scenario's.
Matches
<![CDATA[ gobbledy gook ]]> | <![CDATA[ gobbledy & more gook ]]>
Non-Matches
<![CDATA[ gobbledy ] gook ]]> | <![CDATA[ gobbledy ]] gook ]]>
Author Rating: The rating for this expression. dave krause
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials