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 9s.

the regex weird, , not typical of intention imo. i'd write as...

/^9{2,}\z/ 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -