|
| The Turbo GREP 5.5 which has been shipping with Delphi 5-7 at least
is only documented as supporting *regular expressions* but I've also
found it to support every *enhanced* regular expression I've tried
such as alternation "(big|small)", one or more via "+", etc.
Now I hit a case where I wanted to use a back-reference, ie matching
a previously matched subexpression within the expression, ie
"(["'`])[a-z]\1" where I used "\1" to signify the back-reference to the
first parenthesized subexpression, the range of quotation marks.
This syntax is used by some ERE based tools.
The back-ref would make the expression only match matching pairs
of quotes.
So, my questions are:
1) Does anyone know if GREP 5.5 supports backrefs and if so
what is the syntax.
2) Does anyone know of additional usage info for GREP beyond
that supplied via "grep ?". I've been unable to google anything
useful.
TIA,
Jay
|
|