ASP.NET Regex to Test Input for NUMBERS Only - 08/12/2010

Here's the bit you want...

if regex.ismatch(mytext.text, "^\d+$") = false then
mytexterror.text = "Please Only Enter a Number"
end if

Regex is really confusing...don't ask me to explain the regex part. I just use other people's examples. If anyone wants to write a simple, clear explanation about regex I'd be happy to publish it here.