While ikegami said pretty much everything I wanted to say, I suggest that if you can come up with a set of explicit rules for what you want removed or, conversely, kept, the code will be easy (perhaps not the most elegant possible).
emc
Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.
In reply to Re: Re^3: Regex, extracting stuff from the middle of a line
by swampyankee
in thread Using a regex function from a hash
by perlNinny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |