Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
什么是允许字母和空格的php正则表达式。但是只有第一个单词后才有空格?
谢谢你
$rex = '/^[a-zA-Z][a-zA-Z ]*$/';
或者
$rex = '/^[a-z][a-z ]*$/i'; // i means case insensitive