core java
-
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
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
Word frequency count example
With this example we are going to demonstrate how to count the frequency of words in a file. In short,…
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
Simple string tokenizer
In this example we shall show you how to use a simple StringTokenizer. The string tokenizer class allows an application…
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 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
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
Line ending matching example
With this example we are going to demonstrate how to check a line ending matching. We are using Patterns and…
Read More »