Home >Backend Development >PHP Tutorial >判断为1-99之间奇数的正则

判断为1-99之间奇数的正则

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:55:151783browse

求一个判断为1-99之间奇数的正则
用正则表达式判断输入的数字是否为1--99之间的奇数,包含1跟99,谢谢。
------解决方案--------------------

本帖最后由 xuzuning 于 2014-04-21 10:43:32 编辑 /\d?[13579]/
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