Re: Find string ending with %

2005-08-17 Thread Binish A R
Timothy Johnson wrote: John W. Krahn wrote: [ message rearranged in chronological order. Please do not top-post ] No. If I'm responding to a message in this format, I'll use this format, but there's nothing illegitimate about top-posting. It is the email format that

RE: Find string ending with %

2005-08-16 Thread Timothy Johnson
John W. Krahn wrote: > [ message rearranged in chronological order. Please do not top-post ] No. If I'm responding to a message in this format, I'll use this format, but there's nothing illegitimate about top-posting. It is the email format that most of the world follows, using Outlook or Ou

Re: Find string ending with %

2005-08-16 Thread John W. Krahn
[ message rearranged in chronological order. Please do not top-post ] Timothy Johnson wrote: >> From: Keenan, Greg John (Greg)** CTR ** [mailto:[EMAIL PROTECTED] >> >> >> >> my @oput2 = /\b([0-9]+)%/; >> >> > > Just for starters, a regular expression should use the =~ operator, not > th

Re: Find string ending with %

2005-08-16 Thread John W. Krahn
Keenan, Greg John (Greg)** CTR ** wrote: > Hi, Hello, > Need some help with a regex please. > > I need to search a file for every instance of a string that ends with %. > Think output from the df command. I need the 1, 2 or 3 digits before the % > passed into the array. > > Code: > #!/usr/bin/

RE: Find string ending with %

2005-08-16 Thread Timothy Johnson
Just for starters, a regular expression should use the =~ operator, not the = operator. You might have seen some examples like this: while(){ if($_ =~ /mybigregularexpression/){ Do something... } } Check out 'perldoc perlre'. -Original Message- From: Keenan, Greg John (Gr