regcomp()

From: Date: Thu, 28 Sep 2000 06:51:23 +0000
Subject: regcomp()
Groups: php.dev 
Request: Send a blank email to php-dev+get-33802@lists.php.net to get a copy of this message
Hi, General question. I am writing something which I want to use glibc's regex functions for. Part of the regex depends on the users input so I want to make sure I escape all of the users input so that it will always be seen by regcomp as clear text. When I don't don't escape the text everything works. If I escape the text according to the \xFF way then it doesn't work. Both if I use regular and extended flags. Any ideas? Works with regular C library regex: '\(^/foo/bar.*\)' Doesn't work: '\(^\x2F\x66\x6F\x6F\x2F\x62\x61\x72.*\)' Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#33802) next »