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

PHP正则表达式 有关问题

WBOY
Release: 2016-06-13 10:20:16
Original
891 people have browsed it

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


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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template