Click or drag to resize
GREP Class
The GREP class provides a client for reading in a sequence of lines from standard input and printing to standard output those lines that contain a substring matching a specified regular expression.
Inheritance Hierarchy
SystemObject
  Algs4NetGREP

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class GREP

The GREP type exposes the following members.

Methods
  NameDescription
Public methodStatic memberMainTest
Interprets the command-line argument as a regular expression (supporting closure, binary or, parentheses, and wildcard) reads in lines from standard input; writes to standard output those lines that contain a substring matching the regular expression.
Top
Remarks

For additional documentation, see Section 3.1 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

This class is a C# port from the original Java class GREP implementation by the respective authors.

See Also