Grep with BBEdit 7.1.4
July 29, 2004 5:51 PM   Subscribe

Is there a way, using Grep with BBEdit 7.1.4, to exclude lines that contain a tab character?

I have a large list that looks similar to this:

Heading
1    Name
Address    555-5555
2    Name
Address    555-5555
Heading
3    Name
Address    555-5555
4    Name
Address    555-5555

I would like to manipulate the Heading lines based on their lack of a tab character. Any ideas?
posted by the biscuit man to Computers & Internet (9 answers total)
 
^[^\t]*$
posted by nakedcodemonkey at 6:08 PM on July 29, 2004


Thank you! Now I can stop pulling my hair out.
posted by the biscuit man at 6:45 PM on July 29, 2004


I ? regex.
posted by nakedcodemonkey at 7:04 PM on July 29, 2004


I ♥ regex.
posted by nakedcodemonkey at 7:05 PM on July 29, 2004


Actually, ^[^\t] is enough (a partial match is enough).

Also, I'm not sure if you're talking about some builtin function in bbedit or just the standard unix grep. If the latter, "grep -v '^\t'" is enough, and slightly neater in my opinion.
posted by fvw at 9:53 PM on July 29, 2004


Oops, didn't read the question properly. Ignore that, use either nakedcodemonkey's suggestion or "grep -v '\t'".
posted by fvw at 9:54 PM on July 29, 2004


1. learn regex
2. ???? ? ? ? ?
3. Profit!!!
posted by mwhybark at 11:01 PM on July 29, 2004


argh

"2. ???? ♥♥♥♥"

grmbl
posted by mwhybark at 11:02 PM on July 29, 2004


I ♥ regex too.
posted by the biscuit man at 11:15 PM on July 29, 2004


« Older What makes sunglasses good for you?   |   Starting a very small business. Newer »
This thread is closed to new comments.