Home » Core Java » util » regex » Pattern » Page 2

Pattern

Validate Password with Java Regular Expression example

Bipartite Graph

In the previous tutorial on username validation we explained why input validation is important for your application’s security and data consistency. For our passwords we are going to implement a strict policy about their format. We want our passwords to : Be between 8 and 40 characters long Contain at least one digit. Contain at least one lower case character. ...

Read More »

Validate Username with Java Regular Expression example

Bipartite Graph

When you are writing an application that requires authentication, in most cases, the users should provide a username among other credentials. It’s a very common security directive to perform an input validation on the credentials the users give. This is crucial for the security of your application and the consistency of your data in the application level of your system. ...

Read More »