Re: perl regexp performance - architecture?

2014-02-17 Thread Phil Smith
On Mon, Feb 17, 2014 at 9:10 PM, Charles DeRykus wrote: > > On Mon, Feb 17, 2014 at 4:25 PM, Phil Smith wrote: > >> On Mon, Feb 17, 2014 at 6:16 PM, Charles DeRykus wrote: >> >>> >>> On Mon, Feb 17, 2014 at 12:41 PM, Phil Smith wrote: >>> I'm currently loading some new servers with CentOS6

Re: perl regexp performance - architecture?

2014-02-17 Thread Phil Smith
On Mon, Feb 17, 2014 at 6:16 PM, Charles DeRykus wrote: > > On Mon, Feb 17, 2014 at 12:41 PM, Phil Smith wrote: > >> I'm currently loading some new servers with CentOS6 on which perl5.10 is >> the standard version of perl provided. However, I've also loaded perl5.18 >> and I don't think the vers

Re: perl regexp performance - architecture?

2014-02-17 Thread Charles DeRykus
On Mon, Feb 17, 2014 at 12:41 PM, Phil Smith wrote: > I'm currently loading some new servers with CentOS6 on which perl5.10 is > the standard version of perl provided. However, I've also loaded perl5.18 > and I don't think the version of perl is significant in the results I'm > seeing. Basically,

Re: perl regexp error , I cant understand what is wrong

2006-11-02 Thread Rob Dixon
Meir Yanovich wrote: > perl regexp error , I cant understand what is wrong > Hello all I have simple perl regexp that is searching for pattern in string and replace it with the same string + addition string here is what I have :> > > Code: > > my $rec = q| new Array("Attributes Management" >

Re: perl regexp error , I cant understand what is wrong

2006-11-02 Thread Mumia W.
On 11/02/2006 07:11 AM, Meir Yanovich wrote: perl regexp error , I cant understand what is wrong Hello all I have simple perl regexp that is searching for pattern in string and replace it with the same string + addition string here is what I have : Code: my $rec = q| new Array("Attr

Re: perl regexp error , I cant understand what is wrong

2006-11-02 Thread Dr.Ruud
"Meir Yanovich" schreef: > [^+\s*] That is a character class, not containing "+", whitespace and "*". A character class is matching a single character. Is that what you meant by it? It will match the comma that you have in front of the opening dquotes, so that gets removed. -- Affijn, Ruud "G

Re: perl regexp need help!

2005-08-11 Thread John W. Krahn
Jay Savage wrote: > On 8/11/05, Alex <[EMAIL PROTECTED]> wrote: >>>Also, correction posted by Jay, is not applicabile because we have more >>>lines containing "Virus" word and only one should be counted (* Virus). >>> >>And for posterity, i am answering myself: >> >>elsif($prog eq 'hook

Re: perl regexp need help!

2005-08-11 Thread Jay Savage
On 8/11/05, Alex <[EMAIL PROTECTED]> wrote: > > Also, correction posted by Jay, is not applicabile because we have more > > lines containing "Virus" word and only one should be counted (* Virus). > > > > Alex > > And for posterity, i am answering myself: > > elsif($prog eq 'hook') { >

Re: perl regexp need help!

2005-08-11 Thread Alex
> Also, correction posted by Jay, is not applicabile because we have more > lines containing "Virus" word and only one should be counted (* Virus). > > Alex And for posterity, i am answering myself: elsif($prog eq 'hook') { # Vexira antivirus if($text =

Re: perl regexp need help!

2005-08-10 Thread Alex
On Wednesday 10 August 2005 04:36, you wrote: > On 8/9/05, Wagner, David --- Senior Programmer Analyst --- WGO > > <[EMAIL PROTECTED]> wrote: > > Alex wrote: > > > Hello everyone, > > > > > > I need some help to fix a problem in mailgraph.pl script. I'm not a > > > perl programmer, so i hope to fin

Re: perl regexp need help!

2005-08-09 Thread Jay Savage
On 8/9/05, Wagner, David --- Senior Programmer Analyst --- WGO <[EMAIL PROTECTED]> wrote: > Alex wrote: > > Hello everyone, > > > > I need some help to fix a problem in mailgraph.pl script. I'm not a > > perl programmer, so i hope to find a little help here... > > > > I need to translate an old cod

RE: perl regexp need help!

2005-08-09 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Alex wrote: > Hello everyone, > > I need some help to fix a problem in mailgraph.pl script. I'm not a > perl programmer, so i hope to find a little help here... > > I need to translate an old code which is parsing my maillog file, into > new one, related to my present needs. > > The old code has

Re: Perl: regexp

2004-02-24 Thread Wiggins d'Anconia
Rajan wrote: Hi Experts, I am new to perl. The following code works fine. #!/opt/perl/bin/perl use strict; use warnings; my $str="http://162.16.23.0";; if( $str =~ /(\d+)\.(\d+)\.(\d+)\.(\d+)/ ) { print "$1.$2.$3.$4"; } But, How to simplify the following line & print the

RE: Perl: regexp

2004-02-24 Thread Charles K. Clarkson
Rajan <[EMAIL PROTECTED]> wrote: : : I am new to perl. The following code works fine. : : #!/opt/perl/bin/perl : use strict; : use warnings; : : my $str="http://162.16.23.0";; : if( $str =~ /(\d+)\.(\d+)\.(\d+)\.(\d+)/ ) : { : print "$1.$2.$3.$4"; : } : : But, How to simplify the foll

RE: Perl regexp tutorial?

2002-10-08 Thread Timothy Johnson
And don't forget the standard 'perldoc perlre'. -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 11:20 AM To: [EMAIL PROTECTED] Subject: Re: Perl regexp tutorial? Fogle Cpl Shawn B wrote: > > Can anyone point me

Re: Perl regexp tutorial?

2002-10-08 Thread John W. Krahn
Fogle Cpl Shawn B wrote: > > Can anyone point me to a regexp tutorial (or manpage for that matter). I > can't seem to find good information that's too indepth on the subject (and > some of you guys look like regexp wizards). http://www.oreilly.com/catalog/regex2/ John -- use Perl; program ful

RE: Perl regexp tutorial?

2002-10-08 Thread David Samuelsson (PAC)
I have learnt a lot from these pages: http://japhy.perlmonk.org/book/ //Dave -Original Message- From: Fogle Cpl Shawn B [mailto:[EMAIL PROTECTED]] Sent: den 8 oktober 2002 09:27 To: '[EMAIL PROTECTED]' Subject: Perl regexp tutorial? Can anyone point me to a regexp tutorial (or manpag