Moderator: General Moderators
1. No punctuations but a dash
2. No numbers only characters
3. First letter should be uppercase
4. Minimal 3 characters
5. Maximal 12 characters
Except for nr. 4/5 this has the required result.
For the last part I've tried the following but it's not working correctly. Who can help me figure this out?
If you absolutely must use a regular expression for it, use a positive lookahead at the beginning of the string.
Code: Select all
Naturally, if you do not absolutely need a regular expression then strlen() is the way to go.
The expression provided seems to work perfectly, thanks!!