Robert am Donnerstag, 9. Juni 2005 14.51:
> I have a log file where the last portion of the events look like:
>
> Printer driver: (Lexmark T520)
>
> Where the portion in parens will change but it will always look like that.
If I guess right that you want to extract the portion in (), what abou
Manav Mathur wrote:
1) Use $RouteArray[2] instead of $RouteArray['2']
It doesn't make a difference, they both do the same thing.
$ perl -le'@x = 11 .. 21; print for $x[ 3 ], $x[ "3" ]'
14
14
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
19, 2005 1:29 PM
|To: Manav Mathur; Chris Knipe; beginners@perl.org
|Subject: RE: regex needed
|
|
|
|Ok Chris. I think I know why thats happening. Its because in some of your
|route entries, there's a space at the beginning whereas for some there aint
|such thing.
|
|try the following
|
|#!/usr
ginal Message-
|From: Manav Mathur [mailto:[EMAIL PROTECTED]
|Sent: Wednesday, January 19, 2005 12:58 PM
|To: Chris Knipe; beginners@perl.org
|Subject: RE: regex needed
|
|
|
|Chris , cant get to you.
|
|1) Use $RouteArray[2] instead of $RouteArray['2']
|2) POst me the 11th route en
Chris , cant get to you.
1) Use $RouteArray[2] instead of $RouteArray['2']
2) POst me the 11th route entry
|-Original Message-
|From: Chris Knipe [mailto:[EMAIL PROTECTED]
|Sent: Tuesday, January 18, 2005 7:55 PM
|To: beginners@perl.org
|Subject: Re: regex needed
|
|
|Hi Ra
Chris Knipe wrote:
Lo everyone,
Hello,
Can someone please give me a regex to parse the following...
Flags: X - disabled, I - invalid, D - dynamic, J - rejected,
C - connect, S - static, r - rip, o - ospf, b - bgp
#DST-ADDRESSG GATEWAY DISTANCE INTERFACE
0 S 0.0.0.0/0
- Original Message -
From: "Randy W. Sims" <[EMAIL PROTECTED]>
To: "Chris Knipe" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, January 18, 2005 4:04 PM
Subject: Re: regex needed
Chris Knipe wrote:
Lo everyone,
Can someone please give me a regex to parse the foll
Chris Knipe wrote:
Lo everyone,
Can someone please give me a regex to parse the following...
Flags: X - disabled, I - invalid, D - dynamic, J - rejected,
C - connect, S - static, r - rip, o - ospf, b - bgp
#DST-ADDRESSG GATEWAY DISTANCE INTERFACE
0 S 0.0.0.0/0 r 1
On Wed, 22 Jan 2003, Rob Dixon wrote:
> Hi George. I think you'd have had an answer by now if there was
> one. I can't think of anything but I wasn't willing to post and say
> 'it can't be done' without waiting for others' ideas.
>
> George P. wrote:
> > But now, I need to check for all classes o
Hi George. I think you'd have had an answer by now if there was
one. I can't think of anything but I wasn't willing to post and say
'it can't be done' without waiting for others' ideas.
George P. wrote:
> But now, I need to check for all classes other than "text";
>
> This has me stumped!!
>
> For
On Tue, 21 Jan 2003, Dan Muey wrote:
>
>
> > Hi,
> >
> > my ($str) = "HI, HELLO, GREETINGS";
> > my ($reg) = "(BYE|HI|CIAO)";
> >
> > if ($str =~ /$reg/)
> > { print "Exists in $str\n"; }
> >
> > The above code, will return true if BYE, HI or CIAO exists
> > in $str.
> > I want a regex to b
> Hi,
>
> my ($str) = "HI, HELLO, GREETINGS";
> my ($reg) = "(BYE|HI|CIAO)";
>
> if ($str =~ /$reg/)
> { print "Exists in $str\n"; }
>
> The above code, will return true if BYE, HI or CIAO exists
> in $str.
> I want a regex to be put in $reg, which will return true
> if neither BYE, HI n
lvez
> Sent: Thursday, November 08, 2001 7:21 PM
> To: [EMAIL PROTECTED]
> Subject: [PBML] Re: Regex needed
>
>
> Hi, I have to parse a file with this lines in it:
> Description . . . . . . . . : Intel 82557-based Integrated Fast Ethernet
> ..
13 matches
Mail list logo