Re: [pcre-dev] contradicting perl sematics

Top Page
Delete this message
Author: Philip Hazel
Date:  
To: Bernie Redman
CC: pcre-dev
Subject: Re: [pcre-dev] contradicting perl sematics
On Tue, 7 Oct 2008, Bernie Redman wrote:

> Sorry to email directly but I am loathe to create a login account in
> order to file a bug report. Captchas would be appreciated, but I
> digress.The following code in perl would match:"qwe" =~ /w/However,
> the PCRE library, if constructing a regex from the string "w" reads it
> as "^w$" implicitly, whereas perl treats it as "^.*w.*$" implicitly.


Please give a working example that shows your problem. What you say
certainly isn't the case for a simple test with pcretest:

$ pcretest
PCRE version 7.7 2008-05-07

re> /w/
data> qwe

0: w
data>



Philip

--
Philip Hazel