"be consistent" | |
PerlMonks |
Re^2: how to strip XML into Plain Text fileby Fletch (Bishop) |
on Jan 26, 2005 at 01:00 UTC ( [id://425093]=note: print w/replies, xml ) | Need Help?? |
... <img alt="Next >>" src="../next_button.jpg" />*Boom* And this is why you use a real parser, not just a regex . . . Update: Just to clarify the above is a pathological case and if you're reasonably sure that it probably won't occur then go ahead and use the simple s///; but be aware that it's not bulletproof and know where to find the right tool when the sledgehammer doesn't cut it any more.
In Section
Seekers of Perl Wisdom
|
|