See my blog post on matching nested constructs using regular expressions
here:
http://badassery.blogspot.com/2006/03/regex-recursion-without-balancing.html

If you still need help after reading that, let me know.


mira wrote:
> 
> I am writing the match case for xml tags inorder to show it as html in a
> div container.
> where in an xml file i will have emphasis tags for bold,italic,undeline
> etc.
> I want to know how to write match the xml tags if it contains nested
> emphasis tags.
> for example when i match like if(Regex.IsMatch(l,"(<Emphasis
> Type=\"Italic\">.+?</Emphasis>)",RegexOptions.IgnoreCase))
> I will get problem when I have the xml as:
> 
> <Emphasis Type=\"Italic\">
>       <Emphasis Type=\"bold\">sdjskdjskdj</Emphasis>
>        sjdksjds ksjd kdjs djsd ksdj kdjskd jdsd
> <Emphasis>  
> 

-- 
View this message in context: 
http://www.nabble.com/regex-for-Nested-tags-tf2617911.html#a8906646
Sent from the Cold Fusion - RegEx mailing list archive at Nabble.com.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1017
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to