Re: [pcre-dev] Question regarding testdata/testoutput1

Page principale
Supprimer ce message
Auteur: Philip Hazel
Date:  
À: ilan dimnik
CC: pcre-dev
Sujet: Re: [pcre-dev] Question regarding testdata/testoutput1
On Sun, 14 Feb 2010, ilan dimnik wrote:

> The below is takem from testoutput1. Why does "abk " (there are some
> spaces after the last 'k') is on the failing list? The strings has some
> white spaces at the end.
> Doesn't it mean it should be on the accepting list?


You might think so, but if you read the specification of the pcretest
program, you find this:

DATA LINES

       Before each data line is passed to pcre_exec(),  leading  and  trailing
       whitespace  is  removed,  and it is then scanned for \ escapes.


Philip

--
Philip Hazel