[TxMt] Finding lines that DON'T match

Tobias Jung newsgr at tobiasjung.net
Mon Dec 11 23:55:29 UTC 2006


At 10:53 Uhr -0500 11.12.2006, Rob McBroom wrote:
>>  I've got a file with a LOT of lines that match the following 
>> regular expression:
>>  ([0-9]+);([^;]+);([0-9]+);([0-9.]+);\n
>>
>>  But within that file there are a few lines that don't match (in 
>> various ways) and I've got to find those lines. Is there a way to 
>> tell TextMate:  "Find everything that DOESN'T match the given 
>> regular expression"?
>
>  If this is a one time thing, you could use Filter Through CommandŠ 
> (R) and run the file through `egrep -v [pattern]`. If you're 
> tying to match this on a more permanent basis (in a Language 
> Grammar or something) then I'm not sure off the top of my head, but 
> I'll bet the answer is on its way from someone else.

It was a one time thing indeed, so you were pointing me into the 
right direction. Thanks a lot! :-)

Kind regards,
Tobias





More information about the textmate mailing list