Re: [Perl-unix-users] regexp question: $1 result (HTML formatted color-codedmail)

2002-10-18 Thread Joseph . Cumming
) . "<\/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

Re: [Perl-unix-users] regexp question: $1 result (HTML formatted color-coded mail)

2002-10-18 Thread Brian Noble
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<

[Perl-unix-users] regexp question: $1 result (HTML formatted color-coded mail)

2002-10-18 Thread Roman @ Melihhov
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

Re: [Perl-unix-users] regexp question

2002-06-09 Thread stormpunk
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

[Perl-unix-users] regexp question

2002-06-08 Thread Roman @ Melihhov
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