Re: Error : Nested quantifiers before HERE mark in regex

2005-11-29 Thread Xavier Noria
On Nov 29, 2005, at 10:42, Bedanta Bordoloi, Gurgaon wrote: No, $log_entry[0] holds a string, and we are getting the error as ** is a part of that string. Interpolation in regexps is done before the regexp is interpreted as such. For instance, if $foo is "*" and we have /.*$foo/ fir

RE: Error : Nested quantifiers before HERE mark in regex

2005-11-29 Thread Bedanta Bordoloi, Gurgaon
Thanks, John for that, it works fine now... Bedanta -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 3:25 PM To: Perl Beginners Subject: Re: Error : Nested quantifiers before HERE mark in regex Bedanta Bordoloi, Gurgaon wrote: > Hi

Re: Error : Nested quantifiers before HERE mark in regex

2005-11-29 Thread John W. Krahn
Bedanta Bordoloi, Gurgaon wrote: > Hi All, Hello, > I'm using the following regex in my code with processes a log file > > $str =~ s/(^$log_entry[0]\s)//i > > But I'm getting the following error on running the script: > > Nested quantifiers before HERE mark in regex m/(^img13.** <<

RE: Error : Nested quantifiers before HERE mark in regex

2005-11-29 Thread Bedanta Bordoloi, Gurgaon
No, $log_entry[0] holds a string, and we are getting the error as ** is a part of that string. Bedanta -Original Message- From: Xavier Noria [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 3:08 PM To: beginners perl Subject: Re: Error : Nested quantifiers before HERE mark in

Re: Error : Nested quantifiers before HERE mark in regex

2005-11-29 Thread Xavier Noria
On Nov 29, 2005, at 10:22, Bedanta Bordoloi, Gurgaon wrote: Hi All, I'm using the following regex in my code with processes a log file $str =~ s/(^$log_entry[0]\s)//i But I'm getting the following error on running the script: Nested quantifiers before HERE mark in regex m/(^i

Error : Nested quantifiers before HERE mark in regex

2005-11-29 Thread Bedanta Bordoloi, Gurgaon
Hi All, I'm using the following regex in my code with processes a log file $str =~ s/(^$log_entry[0]\s)//i But I'm getting the following error on running the script: Nested quantifiers before HERE mark in regex m/(^img13.** << HERE **\s)/ Can the regex be written in some other