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
Find all words of length x
Moderators: DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2328
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Try removing all lines that do NOT match
^[\w]{5}$
^[\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
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