Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.6

Bug #17555 | or /
Submitted: 2010-07-03 03:56 UTC
From: domih Assigned: amir
Status: Closed Package: Validate (version 0.8.3)
PHP Version: 5.3.2 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2010-07-03 03:56 UTC] domih (dominique hermsdorff)
Description: ------------ In Validate.php one can read: if ($format && !preg_match("|^[$format]*\$|s", $string)) { do you mean: if ($format && !preg_match("/^[$format]*\$/s", $string)) { ?

Comments

 [2010-07-17 19:58 UTC] amir (Amir Mohammad Saied)
-Status: Open +Status: Closed -Assigned To: +Assigned To: amir
| and / are both valid pattern delimiters in PCRE. Actually any non-alphanumeric (and non-backslash) character is a valid delimiter.