Home >Backend Development >PHP Tutorial > 帮小弟我写个JS 正则

帮小弟我写个JS 正则

WBOY
WBOYOriginal
2016-06-13 13:30:43945browse

帮我写个JS 正则
只允许adsl开头 数字允许1-99

例如 adsl23
  adsl78

------解决方案--------------------
/^adsl[1-9]{2}$/

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