Thanks for ur solution.
Ur example solved my problem.
there is a lot for me to learn about Regex.

I have a doubt

sample text
************
<div style=\"FLOAT: left\">
(there can be anything inside this)
</div>

I need to write replacement for the above string.
ie i need to check if the div tags holds a value
ie anything nested within the above div should become empty

check my replacement code
*************************

if(Regex.IsMatch(htmltags,"(<div style=\"FLOAT: 
left\">(.+?)</div>)",RegexOptions.IgnoreCase))
{ 
htmltags=Regex.Replace(htmltags,"<div style=\"FLOAT: left\">(.+?)</div>","<div 
style=\"FLOAT: left\"></div>",RegexOptions.IgnoreCase);
}

can u please check my above code and give me a solution.It is not replaced 
properly.
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:999
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