Hello all...

I have strings like the following one:
my $s="The <b>L</b>ibrary<b> of <font color...";

I want to truncate the string, to become
"The <b>L</b>ibrary<b> of ..."
(that is remove 'unterminated' html tags - tags that open but there is no 
'>' at the end, and add "..." if necessary)

By using the following:
$s=~s/<(?!.*?>)//;
I only get a removal of the non-matching '<':
"The <b>L</b>ibrary<b> of font color...";

Any suggestions?

Thanks in advance.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to