Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: Matching nested begin/endsby jryan (Vicar) |
on Aug 02, 2002 at 23:04 UTC ( [id://187244]=note: print w/replies, xml ) | Need Help?? |
I again disagree. Delimited text is generally part of a larger document that needs to be processed. I can see your point that anchoring the regex is the best way to fully verify the text item's syntax. However, why would this be needed? The item must have followed some pattern to be extracted in the first place. Also, /begin.*end/ will allow a begin followed by an end, which will allow an item like beginbeginend to pass with no problems; hence recursion is needed.
In Section
Cool Uses for Perl
|
|