What is the bigger problem you are working on? In other words: Why!
Many of the other relies are trying to elucidate further information to better specify your problem. As presented there are many vague areas in your problem description. To really help we need to know more about the context of your problem. If this is a homework exercise then a simple (\w+) capture will suffice to extract words, but if you need to deal with real world text then you need to look to the lingua modules to parse out words. On the other hand, if you are looking for specific words then a regular expression may be a good tool for the task.
In reply to Re: find words around a word in a file.
by GrandFather
in thread find words around a word in a file.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |