Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Custom Regular Expressions in ASP.net

Reply
Thread Tools

Custom Regular Expressions in ASP.net

 
 
Jay Douglas
Guest
Posts: n/a
 
      11-02-2003
Hello.
I would like to add my own regular expressions to the list of available
expression used in the Visual Studio IDE. I've searched high and low
through configuration files and on the web and have not had any luck. Any
input is appreciated.

--
Jay Douglas
Fort Collins, CO




 
Reply With Quote
 
 
 
 
Chris LaJoie
Guest
Posts: n/a
 
      11-02-2003
Regex rx = new Regex("<[^>]*>");

that rx will match html tags. you can make up anything.


 
Reply With Quote
 
 
 
 
Jay Douglas
Guest
Posts: n/a
 
      11-02-2003
I was thinking more along the lines on how to actually add the Regular
Expressions to the list avaiablable pre-built expressions in the VS IDE.
For instance, they already have ones like Phone Number, Social Security
Number, etc. I would like to add my own in there.



--
Jay Douglas
Fort Collins, CO



"Chris LaJoie" <> wrote in message
news:...
> Regex rx = new Regex("<[^>]*>");
>
> that rx will match html tags. you can make up anything.
>
>



 
Reply With Quote
 
mikeb
Guest
Posts: n/a
 
      11-03-2003

Jay Douglas wrote:

> I was thinking more along the lines on how to actually add the Regular
> Expressions to the list avaiablable pre-built expressions in the VS IDE.
> For instance, they already have ones like Phone Number, Social Security
> Number, etc. I would like to add my own in there.
>
>
>


Those regex strings appear to be hard coded in the
System.Web.UI.design.WebControls.RegexEditorDialog class (in
System.Design..dll).

--
mikeb

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Regular Expressions in ASP.net Jay Douglas ASP .Net 3 11-03-2003 08:09 PM
Regular expressions mark Perl 4 10-28-2003 12:37 PM
perl regular expressions return last matched occurence? Dustin D. Perl 1 08-28-2003 01:51 AM
matching curly braces and regular expressions Dustin D. Perl 0 08-26-2003 11:18 PM
Add custom regular expressions to the validation list of available expressions Jay Douglas ASP .Net 0 08-15-2003 10:19 PM



Advertisments