) . "<\/A>";
}
Joe
"Roman @ Melihhov" <[EMAIL PROTECTED]>@listserv.ActiveState.com on
10/18/2002 16:00:03
Sent by: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
cc:
Subject: [Perl-unix-users] regexp question: $1 result (HTML formatted
color-coded
Use the substr function.
On Fri Oct 18, 2002 at 06:00:03PM +0300, Roman @ Melihhov wrote:
> Sup,
>
> I know how to match certain length patterns, but is there any way to return only
>certain amount of the $1
>
> if ($k_7 =~ /^(www\.(\S+|$))/i)
> {$k_7 =~ s/(www\.(\S+|$))/target=\"_blank\">$1<
Sup,
I know how to match certain length patterns, but is
there any way to return only certain amount of the $1
if ($k_7 =~ /^(www\.(\S+|$))/i) {$k_7 =~
s/(www\.(\S+|$))/$1\"
title=\"$1\" target=\"_blank\">$1<\/A>/gi;}
I need that $1 (in red)
in the visible part of URL would be max
Roman @ Melihhov wrote:
>How do I safely strip out html tags.
>
>s!<(.|\n)*>!!gi;
>
>above construct sometimes removes actual text portions of the document if the line
>break within tag reached. Ideas appreciated.
>
>
>
Good thing this isn't a FAQ or somebody would quote from that.
`perldoc -q
How do I safely strip out html tags.
s!<(.|\n)*>!!gi;
above construct sometimes removes actual text portions of the document if the line
break within tag reached. Ideas appreciated.
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: h