为什么这个PHP正则表达式返回1?

ona*_*sar 4 php regex

为什么以下常规函数调用返回以下值1:

preg_match('<strong>', '<strong[\>\s]+')
Run Code Online (Sandbox Code Playgroud)

根据文件,我本以为它们应该被颠倒过来.

Joh*_*ica 6

<strong>是一个带有尖括号作为分隔符的正则表达式.实际的正则表达式只是strong部分,它成功匹配主题字符串,因为它没有^$锚点.

这将失败:

preg_match('/<strong>/', '<strong[\>\s]+')
Run Code Online (Sandbox Code Playgroud)