Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Custom Regular Expressions in ASP.net (http://www.velocityreviews.com/forums/t19989-custom-regular-expressions-in-asp-net.html)

Jay Douglas 11-02-2003 12:35 AM

Custom Regular Expressions in ASP.net
 
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





Chris LaJoie 11-02-2003 03:04 AM

Re: Custom Regular Expressions in ASP.net
 
Regex rx = new Regex("<[^>]*>");

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



Jay Douglas 11-02-2003 04:54 AM

Re: Custom Regular Expressions in ASP.net
 
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" <chris@etriptrader.com> wrote in message
news:OVm5V4OoDHA.1096@TK2MSFTNGP11.phx.gbl...
> Regex rx = new Regex("<[^>]*>");
>
> that rx will match html tags. you can make up anything.
>
>




mikeb 11-03-2003 08:09 PM

Re: Custom Regular Expressions in ASP.net
 

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



All times are GMT. The time now is 12:28 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.