Search Results for: regular
-
Matcher
Validate IP Address with Java Regular Expression example
With this example we shall show you how to validate the format of ip addresses using Java Regular Expression. The…
Read More » -
Matcher
Validate Email Address with Java Regular Expression example
Email validation is a very frequent requirement in many applications. Basically the main policy that email format follows is that…
Read More » -
Matcher
How To Validate Hex Color Code With Regular Expression
In this tutorial we are going to see how to create a simple application that validates Hexadecimal Color Codes. The…
Read More » -
Matcher
Validate Password with Java Regular Expression example
In the previous tutorial on username validation we explained why input validation is important for your application’s security and data…
Read More » -
Matcher
Validate Username with Java Regular Expression example
When you are writing an application that requires authentication, in most cases, the users should provide a username among other…
Read More » -
regex
Split a string by regular expression
This is an example of how to split a String using regular expression. Splitting a String with a regular expression…
Read More » -
regex
Parse an Apache logfile with regular expressions
In this example we shall show you how to parse an Apache logfile with regular expressions. To parse an Apache…
Read More » -
regex
Filter the content of a file using regular expressions
This is an example of how to filter the content of a file using regular expressions. Filtering the content of…
Read More » -
regex
Match address using regular expressions
This is an example of how to match an address using regular expressions. We have created a method boolean isValidAddr(String…
Read More » -
regex
Regular expressions for IP v4 and IP v6 addresses
In this example we shall show you how to check if an address is an IPv4 or IPv6 address, using…
Read More »