menu bar

Grep

Pe uses the GNU regex-0.12 library for regular-expression search. Source code for this library is included, so you can replace or alter this library if you need to. (If you wish to replace this lib, alter the source code and compile it into a shared library with the name librx.so and place it in ~/config/lib.)

The syntax used for regular expression is the so-called POSIX extended syntax. You can find extensive explanation of this syntax in several sources; O'Reilly has a book dedicated to this subject.

A specification of the extended POSIX regular expression syntax can be found on the website of The Open Group. Another source of info might be the documentation supplied with the regex-0.12 package. Look in the directory containing this package for the docs directory.

Pe has some minor differences, however. Before passing an expression to the regex compiler, it scans the search string for these four sequences:
These characters... ...are replaced by
\n linefeed
\r carriage return
\t tab
\\ single backslash


Last updated: 05/17/98
Copyright 1997,1998, © Hekkelman Programmatuur,
info@hekkelman.com