New in 1.5.3
An Online Test
If you need a non-LGPL version
You Can Buy!
Tutorial Part 1
Tutorial Part 2
Tutorial Part 3
Tutorial Part 4
Tutorial Part 5
Tutorial Part 6
- tst.java This example shows
some very basic usage of the package. It should help you get
a quick start on things.
- deriv2.java This shows
you how to make your own patterns with package com.stevesoft.pat.
- deriv3.java More examples
of how to make your own patterns.
This shows you how to define your own replacement rules in
This is a speed test of package pat in finding a literal
substring, comparing it against String's
indexOf() method. Speed is similar.
In some rare cases pat is faster.
Like StringTokenizer, but different.
An example of how to use the Transformer.
This carries out several substituions simultaneously. You can,
for example, swap all instances of foo
with bar and vice-versa.
- chararray.java shows
you how to search a char with package pat.
shows you how to search a random access file with package pat.
- setbuf.java shows you how
to capture the result of a replace to a different place than
Weird and perhaps aesthetically displeasing stuff...