Re: [pcre-dev] \D does not work on windows?

トップ ページ
このメッセージを削除
著者: Christian Ehrlicher
日付:  
To: pcre-dev
題目: Re: [pcre-dev] \D does not work on windows?
Philip Hazel schrieb:
> On Tue, 14 Oct 2008, Christian Ehrlicher wrote:
>
>> can someone explain me what I'm doing wrong here:
>>
>>    re> /\D/
>> data> 1/2.3,4
>> No match

>>
>> I'm using a self-compiled pcre compiled with the cmake scripts.
>
> It works fine on Linux. As I am not a Windows user, I cannot test it
> on Windows for myself.
>
>> Looks like all regexps with \ do not work
>
> What is the output of "pcretest -d" for that regex?
>

This time with mingw-compiled version:

PCRE version 7.8 2008-09-05

   re> /\D/
------------------------------------------------------------------
   0   5 Bra
   3     D
   5   5 Ket
   8     End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
First char = 'D'
No need char

data> 1.2

No match
data> 1D2

0: D

I somehow miss the '\' ...
I do not use readline. It's compiled with msvc8 and plain mingw (no msys
anywhere)


Christian