Sorry if i have not explained it propertly.
I am interested in both username and domain name.
for example valid userdomain name will be scott\tiger where scott is domain name and tiger is user name and "\" between them.
when user input user domain name ,i need to validate whether he has inputted in proper format or not.So i need regular expression for that.
Since user name and domain name have their own restriction ,i have just mentioned again as below :
As per standard criteria windows domain name :-
1.Can have alphanumberic (letter + number), but shouldn;t start with numbers. 2.No special character except dotnet (.) and hyphen (-)
As per standard Criteria for windows user name :-
1.can have alphanumberic (letter + number ), except following special Characters
\ / " [ ] : | < > + = ; , ? * @
user name can have space but it should not be full of spaces.
I hope this time i have framed my query clearly.I am just trying to get regex expression for valid domain user name (scott\tiger)
Plz give us any regular expression for same.