[futurebasic] Re: [FB] [OT] grep

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2005 : Group Archive : Group : All Groups

From: Ben Jamin <benjamen@...>
Date: 30 Jan 2005 18:27:41 +1100
Whoops, this has a small weakness, if a quoted area ends
with a comma eg:

"field1,field2,"

You can get around this using the so much more complex:

Replace:

,("[^\r\t]*?")

with:

\t\1


Includes non-greedy flag - yeah!
Due to the complexitiy of regex, I might
have to start putting revision numbers on this :-)

Jamin

P.S  Technically I dont think this is grep,
I dont know why BBEdit calls its checkbox 'grep'.
To my mind it is regex (or regexp)
I though grep was a unix file utility that supported
regex??