Finding lines which start with the same word
Posted: Fri Oct 15, 2010 11:20 am
I am trying to find search for lines in a document which start with the same word (preceded by a parenthesis). For example,
(robot,[N],[Device,Concrete,Count,Animate])
(robot,[N],[human,count])
so that I can delete duplicates.
The regular expression I am using is
(\([:word:]+\),.*\n^(\1
But it says it is not valid, and don't understand why
Thanks
(robot,[N],[Device,Concrete,Count,Animate])
(robot,[N],[human,count])
so that I can delete duplicates.
The regular expression I am using is
(\([:word:]+\),.*\n^(\1
But it says it is not valid, and don't understand why
Thanks