I'm sure we could solve this problem, but I'm afraid you are trying to reinvent a thoroughly invented wheel. What you need is something like Text::Template or the Template Toolkit from CPAN. They do exactly what you are trying to implement. You'll save loads o' time, and have the leisure to go out and feast on pommes frites.
the lowliest monk
In reply to Re: Regex Parsing
by tlm
in thread Regex Parsing
by toadi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |