New Posts New Posts RSS Feed: NamedRegExPattern
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

NamedRegExPattern

 Post Reply Post Reply
Author
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Topic: NamedRegExPattern
    Posted: 09-Apr-2013 at 7:21am
Thanks Kim.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 08-Apr-2013 at 6:56pm
It looks like the RegexVerifierAttribute doesn't support this. We've added a defect report to fix this.
Back to Top
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Posted: 06-Apr-2013 at 5:01pm
I have a RegExVerifier that looks like this:

[RegexVerifier("Email", "^[\\w.%-]+@[\\w.-]+\\.[a-zA-Z]{2,4}$")]
public static string Email;

This works just fine. However, I was trying to do this as a named RegEx, but couldn't get it to work:

I thought the syntax would be something like:

[RegexVerifier("Email", NamedRegexPattern.Email)]
public static string Email;

Greg
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down