How to interpret: "^\w+[\\]\w+$"
Posted on 2008-10-16
I'm trying to debug code written by another developer. What happens is the user is prompted to enter a domain and user name in order to proceed. The code looks like this:
s.Owner = InputBox.Show(InputBox.IOptions.O_Cancel, ..., @"^\w+[\\]\w+$", @" Enter domain\username");
I'm guessing that after the user clicks the 'OK' button, the domain and user name are processed via the regular expression. If I were to enter the following, what should be expected?