We don't bite newbies here... much | |
PerlMonks |
Re: Parsing... possible w/o too much stress ?by hsmyers (Canon) |
on Mar 19, 2003 at 15:47 UTC ( [id://244356]=note: print w/replies, xml ) | Need Help?? |
If there is the slightest chance that your braces or whatever will be nested, then avoid regexen for that part of the problem. I've used all of the solutions mentioned so far and while they will do the job with varying degrees of ease, the one I've found easiest is Text::DelimMatch. It does the obvious and will handle nesting as well.
--hsm "Never try to teach a pig to sing...it wastes your time and it annoys the pig."
In Section
Seekers of Perl Wisdom
|
|