Use regular expressions to match multiples of 3

WBOY
Release: 2016-07-25 08:47:21
Original
1410 people have browsed it
Code comes from: http://www.zhihu.com/question/24824487

It is recommended to use Regexp Match Tracer to test regularity
  1. ^[0369]*(([147][0369]*|[258][0369]*[258][0369]*)([147][0369]*[258][0369]*) *([258][0369]*|[147][0369]*[147][0369]*)|[258][0369]*[147][0369]*)*$
Copy code
Use regular expressions to match multiples of 3


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