| 7 |
If it is given two filename arguments, it reads from the first and writes to |
If it is given two filename arguments, it reads from the first and writes to |
| 8 |
the second. If it is given only one filename argument, it reads from that file |
the second. If it is given only one filename argument, it reads from that file |
| 9 |
and writes to stdout. Otherwise, it reads from stdin and writes to stdout, and |
and writes to stdout. Otherwise, it reads from stdin and writes to stdout, and |
| 10 |
prompts for each line of input. |
prompts for each line of input, using "re>" to prompt for regular expressions, |
| 11 |
|
and "data>" to prompt for data lines. |
| 12 |
|
|
| 13 |
The program handles any number of sets of input on a single input file. Each |
The program handles any number of sets of input on a single input file. Each |
| 14 |
set starts with a regular expression, and continues with any number of data |
set starts with a regular expression, and continues with any number of data |
| 15 |
lines to be matched against the pattern. An empty line signals the end of the |
lines to be matched against the pattern. An empty line signals the end of the |
| 16 |
set. The regular expressions are given enclosed in any non-alphameric |
data lines, at which point a new regular expression is read. The regular |
| 17 |
delimiters other than backslash, for example |
expressions are given enclosed in any non-alphameric delimiters other than |
| 18 |
|
backslash, for example |
| 19 |
|
|
| 20 |
/(a|bc)x+yz/ |
/(a|bc)x+yz/ |
| 21 |
|
|
| 22 |
White space before the initial delimiter is ignored. A regular expression may |
White space before the initial delimiter is ignored. A regular expression may |
| 23 |
be continued over several input lines, in which case the newline characters are |
be continued over several input lines, in which case the newline characters are |
| 24 |
included within it. See the testinput files for many examples. It is possible |
included within it. See the test input files in the testdata directory for many |
| 25 |
to include the delimiter within the pattern by escaping it, for example |
examples. It is possible to include the delimiter within the pattern by |
| 26 |
|
escaping it, for example |
| 27 |
|
|
| 28 |
/abc\/def/ |
/abc\/def/ |
| 29 |
|
|
| 88 |
|
|
| 89 |
The /I modifier requests that pcretest output information about the compiled |
The /I modifier requests that pcretest output information about the compiled |
| 90 |
expression (whether it is anchored, has a fixed first character, and so on). It |
expression (whether it is anchored, has a fixed first character, and so on). It |
| 91 |
does this by calling pcre_info() after compiling an expression, and outputting |
does this by calling pcre_fullinfo() after compiling an expression, and |
| 92 |
the information it gets back. If the pattern is studied, the results of that |
outputting the information it gets back. If the pattern is studied, the results |
| 93 |
are also output. |
of that are also output. |
| 94 |
|
|
| 95 |
The /D modifier is a PCRE debugging feature, which also assumes /I. It causes |
The /D modifier is a PCRE debugging feature, which also assumes /I. It causes |
| 96 |
the internal form of compiled regular expressions to be output after |
the internal form of compiled regular expressions to be output after |