Re: HELP! Reg-ex question

2003-06-27 Thread Sudarshan Raghavan
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

RE: HELP! Reg-ex question

2003-06-27 Thread Tim Johnson
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

HELP! Reg-ex question

2003-06-27 Thread Mike
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

RE: reg ex question

2002-11-15 Thread Aman Thind
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

Re: reg ex question

2002-11-15 Thread Sudarshan Raghavan
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

reg ex question

2002-11-15 Thread Melanie Rouette
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

RE: another reg-ex question

2002-10-21 Thread Michael Hooten
-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

another reg-ex question

2002-10-18 Thread David Mamanakis
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