Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 不带非字符符号的驼峰格式正则表达式检查字符串_Php_Regex - Fatal编程技术网

Php 不带非字符符号的驼峰格式正则表达式检查字符串

Php 不带非字符符号的驼峰格式正则表达式检查字符串,php,regex,Php,Regex,我得到了^[a-z]+([a-z]?[a-z]+)+regex来检查camel大小写,如何让它也检查字符串中没有非字符符号?在表达式末尾使用$: ^[a-z]+([A-Z]?[a-z]+)+$

我得到了
^[a-z]+([a-z]?[a-z]+)+
regex来检查camel大小写,如何让它也检查字符串中没有非字符符号?

在表达式末尾使用
$

^[a-z]+([A-Z]?[a-z]+)+$