in reply to Re: Parsing/Extracting Data from HTML.
in thread Parsing/Extracting Data from HTML.
Result: (Hey, it's blank!)my $string = "<first><second>blahblah<third>\n"; $string =~ s/<(.*)>//g; print $string;
If you really want to do it this way, use: $string =~ s/<[^>]*?>//g; The question mark keeps the asterisk from slurping up any character -- including angle brackets -- to the end of the line, and then backtracking to pick up that last angle bracket. Of course, so does the negated character class. Just be more specific.
|
|---|