|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-30 14:14 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-03-30 14:14 UTC] johannes@php.net
[2010-03-30 14:26 UTC] abca_b_cabcom at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 08:00:01 2025 UTC |
Description: ------------ The regexs for preg_match() are suppose to work, but error occur Test script: --------------- //test1.php echo preg_match("/^(([A-Z][a-z]*)+\\)*([A-Z][a-z]*)+$/", 'Plz\TestMe'); //test2.php echo preg_match("/^(([A-Z][a-z]*)+[\\])*([A-Z][a-z]*)+$/", 'Plz\TestMe'); Expected result: ---------------- //test1.php - expected result 1 //test2.php - expected result 1 Actual result: -------------- //test1.php - actual result Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 34 in path\to\test.php on line 3 //test2.php - actual result 0