I am using this exact regex in a RegularExpressionValidator and it works fine. However this code in c# is returning true. Can you please let me know what I am doing wrong?
I am checking for numbers only regex
var x = Regex.IsMatch("1234asdf", @"[0-9]+").ToString();