-
class
Check where a class was loaded from
This is an example of how to check where a class was loaded from. To check where a class was…
Read More » -
regex
Find duplication in strings example
With this example we are going to demonstrate how to find duplication in Strings. In order to check if there…
Read More » -
regex
Matcher.appendReplacement example – Part 2
In this example we shall show you how to use Matcher.appendReplacement(StringBuffer sb, String replacement) API method to append to a…
Read More » -
regex
Simple positive Lookbehind
This is an example of a simple positive look behind. Positive look behind methods assert the existence of a pattern…
Read More » -
regex
Get all digits from a string
With this example we are going to demonstrate how to get all digits from a String, using 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
Split string example
This is an example of how to split a String. We will split a given String using the Pattern API.…
Read More » -
regex
Parse a string to paragraphs
With this example we are going to demonstrate how to parse a String to paragraphs. In short, to parse a…
Read More » -
regex
Filter lines from reader example
In this example we shall show you how to filter lines from a Reader. To filter lines from a Reader…
Read More » -
regex
Matcher group example – Part 2
This is an example of how to use Matcher.group(int group) API method to get the input subsequence captured by the…
Read More »