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 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.** << HERE **\s)/
> 
> Can the regex be written in some other way? Please help.

        $str =~ s/(^\Q$log_entry[0]\E\s)//i



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to