Mike wrote:
Given the following code snippet:
-
print "$text\n";
my $text="sour red apples";
my $pattern="(sour)";
my $replacement="very \$1";
$text=~s/$pattern/$replacement/;
print "$text\n";
-
I was expecting "very sour red appl
ent: 6/26/03 12:38 PM
Subject: HELP! Reg-ex question
Given the following code snippet:
-
print "$text\n";
my $text="sour red apples";
my $pattern="(sour)";
my $replacement="very \$1";
$text=~s/$pattern/$replacement/;
pr
Given the following code snippet:
-
print "$text\n";
my $text="sour red apples";
my $pattern="(sour)";
my $replacement="very \$1";
$text=~s/$pattern/$replacement/;
print "$text\n";
-
I was expecting "very sour red apples" to be pr
5, 2002 8:49 PM
To: beginners
Subject: reg ex question
Hi,
I have something like: /usr/local/home/mel/file.txt and I'd like to
strip it so that I can put the path in a variable, the file name in
another one and the extention in a another one as well. How do I do
that, can I do it all
On Fri, 15 Nov 2002, Melanie Rouette wrote:
> Hi,
> I have something like: /usr/local/home/mel/file.txt and I'd like to
> strip it so that I can put the path in a variable, the file name in
> another one and the extention in a another one as well. How do I do
> that, can I do it all in a same e
Hi,
I have something like: /usr/local/home/mel/file.txt and I'd like to
strip it so that I can put the path in a variable, the file name in
another one and the extention in a another one as well. How do I do
that, can I do it all in a same expression. Something like, $path =
/usr/local/home/me
-Original Message-
From: David Mamanakis [mailto:efialtis@;efialtis.com]
Sent: Friday, October 18, 2002 4:37 PM
To: [EMAIL PROTECTED]
Subject: another reg-ex question
these are common it seems...
I have a routine that returns a listing of users and all their information
in a list format in an
these are common it seems...
I have a routine that returns a listing of users and all their information
in a list format in an array
1: (status): : : firstName :
lastName : eMail@.com
example:
1: 223344(IDLE): idiot : 1234567 : Iyam : Stupid : [EMAIL PROTECTED]
This list can be long.
The