Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

7.6 A Regular Expression Example

The following program, called RegExpExample.java, takes a simple regular expression and prints all lines from a file which contain a match.


NOTE: Complete code for this example is located in the examples directory created for your installation of Tools.h++ Professional. The "Examples" chapter in Part V, "Resources," describes the location of that directory, or you can check the online build guide for your installation media.

You might type the following command:

to run this program:



Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.