Home >Backend Development >PHP Tutorial >请教关于PHP正则的表达式,谢谢!

请教关于PHP正则的表达式,谢谢!

WBOY
WBOYOriginal
2016-06-23 13:36:43997browse

[\u4E00-\u9FA5\uf900-\ufa2d\a-eA-E\+\.\s]{0,1}$/   这个表示大小写1位字母a到e

比如:A、b等都是正确的

那要限制:大小写1位字母a到e和符号“+”的正则怎么写?

比如:A+、b+、A等都是正确的


回复讨论(解决方案)

你这不是 php 的正则表达式规则串(是 js 的)

对,是JS的,发贴后没法修改了

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