regex - Need clarification on preg_match in PHP -
i'm kinda of new php, can please clarify below preg_match.
preg_match("/^(9)\1+$/",$value);
it match string consists of 2 or more 9
s.
the regex weird, , not typical of intention imo. i'd write as...
/^9{2,}\z/
Comments
Post a Comment