Extract words out of a text file
Let's say you have a text file like this one:
http://www.gutenberg.org/files/17921/17921-8.txt

Does anyone has a good algorithm, or open-source code, to extract words from a text file?
How to get all the words, while avoiding special characters, and keeping things like "it's", etc...

I'm working in Java.
Thanks
Extract words out of a text file
===

Let's say you have a text file like this one:
http://www.gutenberg.org/files/17921/17921-8.txt

Does anyone has a good algorithm, or open-source code, to extract words from a text file?
How to get all the words, while avoiding special characters, and keeping things like "it's", etc...

I'm working in Java.
Thanks