Re: Reg Ex help...

2004-01-20 Thread James Edward Gray II
On Jan 20, 2004, at 4:28 PM, Lewick, Taylor wrote: Thanks to everyone's help so far, I think I am getting better with Regular expressions... Need a little help on this one This is sample data, not accurate.. 1. St Joes (15-0) .875 (2-0) 2. Kentucky (12-2) .850 (1-0) 10. Kansas (12-2)

Re: Reg Ex help...

2004-01-20 Thread Wiggins d'Anconia
Lewick, Taylor wrote: Thanks to everyone's help so far, I think I am getting better with Regular expressions... Don't know if they have been mentioned, if not: perldoc perlretut perldoc perlre Need a little help on this one This is sample data, not accurate.. 1. St Joes (15-0) .875 (2-0)

RE: Reg ex help

2004-01-12 Thread Colin Johnstone
Thanks Wags, terrific. Colin "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> 13/01/2004 12:03 PM To: Colin Johnstone/Australia/Contr/[EMAIL PROTECTED], <[EMAIL PROTECTED]> cc: Subject: RE: Reg ex help

RE: Reg ex help

2004-01-12 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Colin Johnstone wrote: > Gidday list, > > Please I need a reg ex to return everything to the left of '\WORKAREA' > > in this URL > > $url = 'Y:\default\main\aphrwebAdmin\WORKAREA\Colin' > > I tried > > $url =~ s/(.*?)[\\WORKAREA]/$1/; > > then we wish to remove the drive designation and the l

Re: Reg ex help

2003-02-24 Thread George P.
On Mon, 24 Feb 2003, Colin Johnstone wrote: > Gidday all, > > >From this string I wish to return everything to the left of the last > occurence of "." if it exists. > > string = "3.25.23.4"; my $string = "3.25.23.4"; my $ret = ''; $ret = $1 if ($string =~ /^(.*)\./); print "$ret"; This will p

Re: Reg ex help!

2002-12-20 Thread Rob Dixon
Hi Colin You may prefer this: $line =~ s/[\d\s()]+$//g; which will remove all trailing whitespace, digits and parentheses from string $line. Rob "Colin Johnstone" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Gidday All, > > Im reading course names in

Re : Reg ex help!

2002-12-19 Thread Johnstone, Colin
Thank You Toby and Mark for your help Colin Johnstone Website Project Officer Corporate Website Unit Public Affairs Directorate ph 9561 8643

RE: Reg ex help!

2002-12-19 Thread Toby Stuart
> -Original Message- > From: Johnstone, Colin [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 11:55 AM > To: '[EMAIL PROTECTED]' > Subject: Reg ex help! > > > Gidday All, > > Im reading course names in from a text file and want to > remove the course number from the end

RE: Reg ex help!

2002-12-19 Thread Mark Anderson
Is it always at the very end of the string? If not, then are there any other numbers enclosed in parens in the course names? Probably the following should work: $course =~ s/( \(\d+\)$//; # removes a space followed by an '(' followed by 1 or more digits, followed by ')' at the end of the string F