This example shows some very basic usage of the package. It should help you get a quick start on things. This shows you how to make your own patterns with package com.stevesoft.pat. This shows you how to define your own replacement rules in package pat.
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.