I have a dictionary in .txt format that looks like this:
term 1 definition 1 definition 2 term 2 definition 1 definition 2 definition 3 etc.
There is a tab before the definition, basically it is like this:
term 1 [tab]definition 1 [tab]definition 2 etc.
Now I need to wrap each term and its definitions with a <term> , ie:
<term> term 1 definition 1 definition 2 </term>
I tried to use regular expressions to find a term with its definitions, but no luck. Could you help me with this?
Thanks for any suggestions!
source share