I'm implementing validation for username field using Regular Expression(Regex) in iOS. I don't want username to start with the word "guest". I tried below code but it's not working.
[txtUserName addRegx:@"^(guest)" withMsg:@"Username Can't start with the word guest"];
Ideas?