Hi
Sorry for the newbie question, I'm not a programmer.
I'm looking at a flashcard file. It is a tab delimited file, with tabs separating the fields on each line.
I'd like a couple of regex please.
1) bookmark every line where number of tabs is 0. There is no tabs on a line
2) bookmark every line where number of tabs is 1. There is exactly one tab on a line.
3) bookmark every line where number of tabs is greater then one. That is 2 or more tabs on a line.
thanks
find tabs or lack there of
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
jazzastronomer
- Posts: 36
- Joined: Sat Nov 03, 2007 3:04 am
Click Search > Find.
1) To bookmark every line where the number of tabs is 0:
Find what: ^[^\t]*$
2) To bookmark every line where the number of tabs is 1:
Find what: ^[^\t]*\t[^\t]*$
3) To bookmark every line where the number of tabs is greater than 1:
Find what: [^\t]*\t[^\t]*\t[^\t]*
Click Mark All.
1) To bookmark every line where the number of tabs is 0:
Find what: ^[^\t]*$
2) To bookmark every line where the number of tabs is 1:
Find what: ^[^\t]*\t[^\t]*$
3) To bookmark every line where the number of tabs is greater than 1:
Find what: [^\t]*\t[^\t]*\t[^\t]*
Click Mark All.
-
jazzastronomer
- Posts: 36
- Joined: Sat Nov 03, 2007 3:04 am