on Wed, 01 May 2002 14:28:50 GMT, [EMAIL PROTECTED] (Frank Wiles) wrote: > On Wed, 1 May 2002 22:07:38 +1000 "Arran Ubels" > <[EMAIL PROTECTED]> wrote: > >> How would i filter HTML from a String? > > my $string =~ s/<.*?>//g;
Here's what perldoc -q html How do I remove HTML from a string says about this method: Many folks attempt a simple-minded regular expression approach, like `s/<.*?>//g', but that fails in many cases because the tags may continue over line breaks, they may contain quoted angle-brackets, or HTML comment may be present. Plus folks forget to convert entities, like `<' for example. See the aforementioned FAQ for alternatives. -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]