Hey guys, my RegEx experience is terrible, and I'm in the middle of a
project where I need to convert a plain text dictionary. I have the words,
word type, definitions etc, in the following format:
Abalone (n.) A univalve mollusk of the genus Haliotis. The shell is lined
with mother-of-pearl, and used for ornamental purposes; the sea-ear.
Several large species are found on the coast of California, clinging
closely to the rocks.
And the Only way i can think of breaking everything down into pieces is
with RegEx.
I need to:
1. Extract the word ie: "Abalone" (sometimes there are chars like "-"
before the word.
2. Extract the word type ie: "(n.)"
3. Extract the Definition ie: "A univalve mollusk of the genus Haliotis..."
I was essentially hoping to throw this in a loop and parse the whole
dictionary or in chunks... Can anyone gimme a helping hand? TIA!
--
Message posted via http://www.dotnetmonster.com