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)

Reg Ex help...

2004-01-20 Thread Lewick, Taylor
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) .778 (1-1) 198 Crappy School (2-9) .233 an

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

Reg ex help

2004-01-12 Thread Colin Johnstone
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 leading slash Thanking you in anticipation Coli

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

Reg ex help

2003-02-24 Thread Colin Johnstone
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"; Any help appreciated Thank You Colin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

RE: Reg ex help!

2002-12-19 Thread Mark Anderson
he end of the string Feel free to adapt as needed. /\/\ark -Original Message- From: Johnstone, Colin [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 4:55 PM To: '[EMAIL PROTECTED]' Subject: Reg ex help! Gidday All, Im reading course names i

Reg ex help!

2002-12-19 Thread Johnstone, Colin
Gidday All, Im reading course names in from a text file and want to remove the course number from the end of each course name. Can someone help me with the regex to do this. e.g Mathematics 2 unit (15240) to give me Mathematics 2 unit Thanking you in anticipation. Colin Johnstone Webs