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)
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)
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
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
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
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
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
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]
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
Thank You Toby and Mark for your help
Colin Johnstone
Website Project Officer
Corporate Website Unit
Public Affairs Directorate
ph 9561 8643
> -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
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
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
13 matches
Mail list logo