Page 1 of 1

Find all words of length x

Posted: Sat Jan 31, 2004 4:48 pm
by Henri

I have a file for which every line contains a single word. I would like to extract all the words that have 5 characters.
According to the help file of TextPipe, the following should extract all words having 3 characters: [^\w]\w\w\w+

So I presume that for 5 characters it should be: [^\w]\w\w\w\w\w+

But it does not work and extract all words that are more than five, or it truncated the ones that are more then five.

I am certainly doing something wrong, could you help please.

Thanks and regards

Posted: Mon Feb 02, 2004 11:00 am
by DataMystic Support
Try removing all lines that do NOT match