Custom Regular Expressions in ASP.net

  • Thread starter Thread starter Jay Douglas
  • Start date Start date
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.
 
Regex rx = new Regex("<[^>]*>");

that rx will match html tags. you can make up anything.
 
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 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).
 
Back
Top