match tabs on 2nd line only

A place to try and solve your RegEx problems.
Post Reply
rodp
Posts: 9
Joined: Thu Feb 02, 2012 6:12 pm

match tabs on 2nd line only

Post by rodp » Sat Dec 29, 2012 4:49 pm

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
Post Reply