
94 7. Processing Digital Maps
The Java Tutorial > Essential Classes > Regular Expressions
This lesson explains how to use the java.util.regex API
for pattern matching with regular expressions. . . . Regular ex-
pressions are a way to describe a set of strings based on com-
mon characteristics shared by each string in the set. They can
be used to search, edit, or manipulate text and data.
Program Usage
The OSMparser.java file can be found in the default package of the book/src
folder, and the compiled class file can be copied to any folder and invoked
as follows:
java OSMparser -rx path\in.osm -wx path\out.osm ...
1: ... -clean
clean file from attributes and ...