Find all words of length x

Discuss DetachPipe.com huge attachment service and DetachPipe attachment management Add On for Microsoft Outlook. Get help with installation and running, notify us of bugs, request new features and enhancements.

Moderators: DataMystic Support, Moderators

Henri
Posts: 3
Joined: Tue Aug 19, 2003 6:10 pm

Find all words of length x

Postby Henri » Sat Jan 31, 2004 4:48 pm

Hello,

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
Henri

User avatar
DataMystic Support
Site Admin
Posts: 2138
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Mon Feb 02, 2004 11:00 am

Try removing all lines that do NOT match

^[\w]{5}$
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “DetachPipe.com and DetachPipe Add On Support”

Who is online

Users browsing this forum: No registered users and 2 guests