more useful options | |
PerlMonks |
Re: Re: An "ethical" use of dot-star ..?by Tanalis (Curate) |
on Jun 02, 2003 at 14:26 UTC ( [id://262384]=note: print w/replies, xml ) | Need Help?? |
Yes.
What does that gain, though, over .*?? Is it more efficient, or is it simply avoiding the "problem" by coding round it? Also, to reliably detect a closing tag, you need to match </. There's nothing to stop "<" from appearing in the data (in fact, it's likely for limits we impose locally on credit). The .* construct would have correctly matched "<" without terminating, and continued to match up until it found the </ of a closing tag. I don't think I'm convinced that the alternative you suggest would have the same effect on the data, and the data that got grabbed as the .*. -- Foxcub
In Section
Meditations
|
|