Search Results for: regular
-
regex
Pattern matcher example
In this example we shall show you how to use a Matcher and a Pattern in Java to match an…
Read More » -
regex
Case control example
In this example we shall show you how to handle a case control using a class with a regular expression. To…
Read More » -
regex
String.matches method example
With this example we shall show you how to use String.matches(String regex) API method to check if a given String…
Read More » -
regex
Remove line termination characters from string
In this example we shall show you how to remove line termination characters from a String, using regular expressions. To…
Read More » -
regex
Compile Reg Ex pattern with multiple flags
With this example we shall show you how to compile regular expression to a Pattern with multiple flags. Compiling a regular…
Read More » -
regex
Greedy and non-greedy Reg Ex matching
This is an example of how to use greedy and non-greedy regular expression matching. Greedy matching means that the expression will…
Read More » -
regex
Check if a string matches a Pattern
In this example we shall show you how to check if a String matches a Pattern. To check if a String…
Read More » -
generics
Java Generics Examples
1. Introduction Sun Microsystems included Java Generics in java 1.5 to introduce the type-safety feature while using the collection classes. It…
Read More » -
statics
Static Variable Java Example
1. Introduction This is a static variable Java Example. Static variables are declared with the static word before the type…
Read More »