Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 October 28th, 2004, 10:45 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regular Expression Not Match Method

Hello
I am trying to only allow 10 html tags in my string:
<b>,</b>
<i>,</i>
[u], </u>
<br>
<mailto:[email protected]>

The expressions are:
<?(b|/b|u|/u|i|/i|br)>
<mailto:\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*>

All html tags are not allowed but the above ones.
How do I use Match to be True when there is a match to these html tags.
This is tricky because Match must be True when these are present and these are not present.
All other Html tags are not allowed. If html tags other than the ones listed are present then Match should be false.

There is no such thing as Not Match method. Thank you.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular expression to match &#xff; using saxon igraham XSLT 1 February 28th, 2008 04:26 AM
Match accented characters with a regular expr. dacian PHP How-To 0 February 22nd, 2007 09:54 AM
need regular expression keyvanjan ASP.NET 1.0 and 1.1 Basics 5 August 31st, 2006 07:16 AM
Regular Expression NewToXSL ASP.NET 1.0 and 1.1 Basics 1 June 13th, 2006 02:52 PM
Regular Expression Help Greg Griffiths Javascript How-To 4 November 12th, 2004 05:33 AM





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