Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 23rd, 2003, 09:31 AM
Authorized User
 
Join Date: Aug 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regular Expression to find all tags except bold

I'm looking for a regular expression that will match all html tags except <B> or </B>.

I have the following to find all tags <[\s\S]+?> but I don't know how to find all tags *except* bold.

For example, some HTML to test with:

This <i>is</i> a <b>test</b>.
<h1>More</h1> code
A table <table><tr><td>code</td></tr></table>

Any help much appreciated.





Similar Threads
Thread Thread Starter Forum Replies Last Post
What will be the regular expression for following? [email protected] ASP.NET 1.0 and 1.1 Basics 2 December 26th, 2006 06:49 AM
REGULAR EXPRESSION pallone Javascript How-To 0 September 5th, 2006 06:52 AM
Regular Expression to remove <table> </table> tags mathalete CSS Cascading Style Sheets 2 January 23rd, 2006 01:59 PM
regular expression vohra_vikas2004 ADO.NET 3 November 18th, 2004 09:59 PM
regular expression Moharo Pro PHP 3 April 30th, 2004 04:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.