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

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

WBOY
Release: 2016-06-13 11:55:15
Original
1766 people have browsed it

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

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