For Programmers: Free Programming Magazines  


Home > Archive > Delphi > March 2006 > Slightly OT: Borland Turbo GREP 5.5 shipped with Delphi









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Slightly OT: Borland Turbo GREP 5.5 shipped with Delphi
EJP

2006-03-30, 7:03 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com