Re: Regex needed

2005-06-09 Thread John Doe
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

Re: regex needed

2005-01-19 Thread John W. Krahn
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,

RE: regex needed

2005-01-19 Thread Manav Mathur
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

RE: regex needed

2005-01-18 Thread Manav Mathur
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

RE: regex needed

2005-01-18 Thread Manav Mathur
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

Re: regex needed

2005-01-18 Thread John W. Krahn
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

Re: regex needed

2005-01-18 Thread Chris Knipe
- 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

Re: regex needed

2005-01-18 Thread Randy W. Sims
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

Re: Regex needed.

2003-01-23 Thread George P.
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

Re: Regex needed.

2003-01-22 Thread Rob Dixon
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

RE: Regex needed.

2003-01-21 Thread George P.
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

RE: Regex needed.

2003-01-21 Thread Dan Muey
> 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

RE: [PBML] Re: Regex needed

2001-11-08 Thread Veeraraju_Mareddi
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 > ..