Regular Expression for username and password?

Look at Expression library and choose user name and/or password regex for you. You can also test your regex in online regex testers like RegexPlanet My regex suggestions are: a-zA-Za-zA-Z0-9. _\-{5,}$ This regex accepts user names with minimum 6 characters, starting with a letter and containing only letters, numbers and ".","-","_" characters Next one: a-zA-Z0-9.

_\\-{6,}$ Similar to above, but accepts ". ", "-", "_" and 0-9 to be first characters too If you want to validate only string length (minimum 6 characters), this simple regex below will be enough: {6,}$.

Look at Expression library and choose user name and/or password regex for you. You can also test your regex in online regex testers like RegexPlanet. My regex suggestions are: ^a-zA-Za-zA-Z0-9.

_\-{5,}$ This regex accepts user names with minimum 6 characters, starting with a letter and containing only letters, numbers and ". ","-","_" characters. Next one: ^a-zA-Z0-9.

_\\-{6,}$ Similar to above, but accepts ". ", "-", "_" and 0-9 to be first characters too. If you want to validate only string length (minimum 6 characters), this simple regex below will be enough: ^.

{6,}$.

You could use this to match any alphanumeric character in length of 6 or more: ^a-zA-Z0-9{6,}$. You can tweak it to allow other characters or go the other route and just put in exclusions. The Regex Coach is a great environment for testing/playing with regular expressions (I wrote a blog post with some links to other tools too).

What about ^. {6,}$ What's all the stuff at the start of yours, and did you want to limit yourself to digits?

I don't want to limit to digits ,i just want to limit to the condition: minimum 6(length of the string entered) any string entered less than 6 should cause a validation – Macnique Oct 5 at 18:18.

NRegex is a nice site for testing out regexes. To just match 6 characters, ". {6}" is enough.

In its simplest form, you can use the following: . {6,} This will match on 6 or more characters and fail on anything less. This will accept ANY character - unicode, ascii, whatever you are running through.

If you have more requirements (i.e. Only the latin alphabet, must contain a number, etc), the regex would obviously have to change.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions