Custom Regular Expressions in ASP.net

J

Jay Douglas

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.
 
C

Chris LaJoie

Regex rx = new Regex("<[^>]*>");

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

Jay Douglas

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.
 
M

mikeb

Jay said:
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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top