I need to replace the <Emphasis type="Bold">(.+?)</Emphasis>
with <Bold>$1</Bold>
Italic for<I>$1</I> etc.
Thanks
thanks
>I don't have a C# compiler to test it with, but give this a try:
>
>while (Regex.IsMatch(htmltags, "<Emphasis type=\"([a-z]+)\">",
>RegexOptions.IgnoreCase))
>{
> htmltags = Regex.Replace(htmltags, "<Emphasis
>type=\"([a-z]+)\">(([^<]|<(?!Emphasis))+?)</Emphasis>", "<$1>$2</$1>",
>RegexOptions.IgnoreCase);
>}
>
>
>On 11/15/06, mira mira <[EMAIL PROTECTED]> wrote:
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:997
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21