Re: Help on regular expression !!

2009-08-03 Thread John W. Krahn
jet speed wrote: On Mon, Aug 3, 2009 at 5:45 PM, John W. Krahn wrote: jet speed wrote: Hi John, Thanks for your help, Much appreciated. Please could you also refer any good reference for Regular expression for a beginer like me, would be great. Have you read the documentation that comes w

Re: Help on regular expression !!

2009-08-03 Thread jet speed
On Mon, Aug 3, 2009 at 5:45 PM, John W. Krahn wrote: > jet speed wrote: > >> >> Hi John, Thanks for your help, Much appreciated. Please could you also >> refer any good reference for Regular expression for a beginer like me, >> would >> be great. >> > > Have you read the documentation that comes

Re: Help on regular expression !!

2009-08-03 Thread John W. Krahn
jet speed wrote: Hi John, Thanks for your help, Much appreciated. Please could you also refer any good reference for Regular expression for a beginer like me, would be great. Have you read the documentation that comes with Perl? perldoc perlrequick perldoc perlretut perldoc perlre John --

Re: Help on regular expression !!

2009-08-03 Thread jet speed
On Mon, Aug 3, 2009 at 4:00 PM, John W. Krahn wrote: > jet speed wrote: > >> Guys, >> > > Hello, > > I am new to perl, I am having trouble capturing the required output from >> the command, with my limited knowlege i tried to put something togather. >> not >> sure how to proceed beyond. >> > > I

Re: Help on regular expression !!

2009-08-03 Thread John W. Krahn
jet speed wrote: Guys, Hello, I am new to perl, I am having trouble capturing the required output from the command, with my limited knowlege i tried to put something togather. not sure how to proceed beyond. In a regular expression, when you want to capture part of a pattern you have to e

Re: Help on regular expression

2007-12-13 Thread Rob Dixon
Sayed, Irfan (Irfan) wrote: > > From: Rob Dixon [mailto:[EMAIL PROTECTED] >> >> Sayed, Irfan (Irfan) wrote: >>> >>> Hi All, >>> >>> I have a string like this >>> >>> CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular >>> expression what I want is only those characters before closing

RE: Help on regular expression

2007-12-13 Thread Sayed, Irfan (Irfan)
: beginners@perl.org >> Perl Beginners Cc: Sayed, Irfan (Irfan) Subject: Re: Help on regular expression Sayed, Irfan (Irfan) wrote: > Hi All, > > I have a string like this > > CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular > expression what I want is only

Re: Help on regular expression

2007-12-13 Thread Rob Dixon
Sayed, Irfan (Irfan) wrote: Hi All, I have a string like this CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular expression what I want is only those characters before closing braces excluding white space character. I mean to say that if regular expression encounter the white

Re: Help on regular expression

2007-12-13 Thread Chas. Owens
On Dec 13, 2007 6:12 AM, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a string like this > > CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular > expression what I want is only those characters before closing braces > excluding white space character. I mean to

Re: Help on regular expression

2007-12-13 Thread jeff pang
--- "Sayed, Irfan (Irfan)" <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a string like this > > CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular > expression what I want is only those characters before closing > braces > excluding white space character. I mean to say that

Re: help on regular expression

2004-01-28 Thread John McKown
On Tue, 27 Jan 2004, Madhu Reddy wrote: > Hi, >I need some help on regular expression... > i have following in variable $total_count > > $total_count = "##I USBP 01 10:38:09(000) > ETRACK_TOTAL_RECS : 100" > > Here in this ETRACK_TOTAL_RECS is fixed and common for > all and rest is chan

Re: help on regular expression

2004-01-28 Thread Jan Eden
Hi, $total_count =~ s/.+ : (\d+)/$1/; HTH, Jan Madhu Reddy wrote: >Hi, > I need some help on regular expression... >i have following in variable $total_count > >$total_count = "##I USBP 01 10:38:09(000) > ETRACK_TOTAL_RECS : 100" > >Here in this ETRACK_TOTAL_RECS is fixed and common for

Re: help on regular expression

2004-01-28 Thread Kenton Brede
On Tue, Jan 27, 2004 at 07:49:02AM -0800, Madhu Reddy ([EMAIL PROTECTED]) wrote: > Hi, >I need some help on regular expression... > i have following in variable $total_count > > $total_count = "##I USBP 01 10:38:09(000) > ETRACK_TOTAL_RECS : 100" > > Here in this ETRACK_TOTAL_RECS is fix

RE: help on regular expression

2004-01-28 Thread Mark Anderson
> Hi, >I need some help on regular expression... > i have following in variable $total_count > > $total_count = "##I USBP 01 10:38:09(000) > ETRACK_TOTAL_RECS : 100" > > Here in this ETRACK_TOTAL_RECS is fixed and common for > all and rest is changing... > > like following > > $total_coun

Re: help on regular expression

2004-01-28 Thread Rob Dixon
Madhu Reddy wrote: > Hi, >I need some help on regular expression... > i have following in variable $total_count > > $total_count = "##I USBP 01 10:38:09(000) > ETRACK_TOTAL_RECS : 100" > > Here in this ETRACK_TOTAL_RECS is fixed and common for > all and rest is changing... > > like follow