Hello,
I have a dictionary which I am building for the Open Source Community. The data structure is as under
HEADWORD=PARTOFSPEECH=ENGLISH MEANING
as shown in the example below
=m=Prefix signifying negation.
=ind=Interjection expressing disapprobation.
=int=An interjection expressing contempt,unconcern,disbelief.
=m=A figure;a mark.The thigh.An act of a play.
=n=Arithmetic.
=m=A number,figure.A hook.
=f=A pole with a hook at the extremity.
=f=A ruler,a division.
=vt=Mark;rule;sketch.
=n=Marking;numbering.
=f=A ticket,label showing price of an article.
=m=Permutations.
=f=Operations with figures.
=f=Operations with figures.
=f=Figure-writing.
=vi=To be completely subject to the authority of.
=a=Marked;defined.Circumscribed,limited.
=a=Figured,numbered.
=a=Unhesitating;unstopped.
=vi=To give indications of future character.
=m=A sprout.Germination.
=m=An elephant goad.
=m=Alangium Lamarku.
=f=A ruler.Marking;a division.
=f=A ruler.Marking;a division.
=E=To have a hand in.
=vt=tremble,shiver,quake
=E=Withdraw one's self from.
=E=Contract one's self,evade.
=vi=To spare one's self;to work lazily.
=E=Decline,disallow vehemently.
=E=Lose flesh;lie down carelessly.
=vt=Be seized with rheumatic affection;gain flesh.
=vt=To gain flesh,to have cramps.
=n=Bathing,ablution-used by,of women.
=n=Turning over from one side to the other.
=E=To be unstinted in effort,work strenuously.
=E=Have the aching premonitory symptoms of fever.
=n=Body.Limb.Side.Concern in.Ability.Support.
I need to identify within the headwords, only those which are single headwords and not those where a Headword is made of more than a single headword
Thus
=m=Prefix signifying negation.
=ind=Interjection expressing disapprobation.
=int=An interjection expressing contempt,unconcern,disbelief.
=m=A figure;a mark.The thigh.An act of a play.
=n=Arithmetic.
=m=A number,figure.A hook.
=f=A pole with a hook at the extremity.
=f=A ruler,a division.
=vt=Mark;rule;sketch.
=n=Marking;numbering.
=f=A ticket,label showing price of an article.
=m=Permutations.
=f=Operations with figures.
=f=Operations with figures.
=f=Figure-writing.
=n=Body.Limb.Side.Concern in.Ability.Support.
should be identified but the following which have more than one word are not valid and should not be identified
=E=To have a hand in.
=vt=tremble,shiver,quake
=E=Withdraw one's self from.
=E=Contract one's self,evade.
=vi=To spare one's self;to work lazily.
=E=Decline,disallow vehemently.
=E=Lose flesh;lie down carelessly.
=vt=Be seized with rheumatic affection;gain flesh.
=vt=To gain flesh,to have cramps.
=n=Bathing,ablution-used by,of women.
=n=Turning over from one side to the other.
=E=To be unstinted in effort,work strenuously.
=E=Have the aching premonitory symptoms of fever.
A regex in Perl or Unix would be really useful. Thanks a lot.