Page 1 of 1

match tabs on 2nd line only

Posted: Sat Dec 29, 2012 3:49 pm
by rodp
Hi All,

I have a number of simple text files with a number of lines. On each line there are a number of phrases separated by tabs. I'd like to find how many tabs are on the second line (specifically). I got as far as this for using in textcrawler but it doesn't seem to work in notepad++ and I'm wanting to use Notepad++ for this counting operation. Perhaps I've not written the regex properly.

To find the tabs (\t) on the 2nd row only of said file.
(?<=^.*\r\n.*((?!\t)*))\t

however this also does the same thing

(?<=^.*\r\n.*)\t


I've attached a text file to use as an example.

Thanks in advance

Rodp