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

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -