[pcre-dev] [Bug 587] Matching null characters

Pàgina inicial
Delete this message
Autor: Philip Hazel
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 587] Matching null characters
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=587




--- Comment #4 from Philip Hazel <ph10@???> 2007-08-24 19:20:18 ---
On Fri, 24 Aug 2007, Joy wrote:

> Never mind.. There is something strange with the way my "pattern" was being
> set. I think maybe the compiler was converting \x00 in my pattern string to
> an actual null.


Exactly. That's what

strPattern.SetASCII("[\x00-\x20]");

would do. You need

strPattern.SetASCII("[\\x00-\\x20]");

so that the backslashes get passed to PCRE.

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email