Home  >  Article  >  Backend Development  >  PHP正则表达式 有关问题

PHP正则表达式 有关问题

WBOY
WBOYOriginal
2016-06-13 13:33:16852browse

PHP正则表达式 问题
比如说我想验证  
2年2班  
这样的表达式改怎么写
/^([0-9])+([???])+([0-9])+([???])+/;  


------解决方案--------------------
你的 $rclass 是什么值。echo $rclass;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn