RegularExpressionAttribute behaves different to Regex or
===

I use [RegularExpressionAttribute](http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.regularexpressionattribute.aspx) on my EF meta data like so:

    [RegularExpression("[A-Z]+")]
    public string Code { get; set; }

And it correctly does not let me enter anything other than A-Z anywhere in the field.

Elsewhere I want to use the same reg expressions in code, so I turned to Regex like so:

    var regex = new Regex("[A-Z]+");
    Console.WriteLine(regex.IsMatch("B")); //true
    Console.WriteLine(regex.IsMatch("1")); //false
    Console.WriteLine(regex.IsMatch("A1")); //true - why?

Also [RegexStringValidator](http://msdn.microsoft.com/en-us/library/system.configuration.regexstringvalidator.aspx) works the same as Regex.

What am I doing wrong?

