I am writing an app in ASP.NET 2.0. I want to have the code behind use a regex to validate a field. Any ideas on how to do this? The code is VB.NET

I need to do it in code behind because if I do it in the validation control it checks the field when the page loads.

thanks in advance