Blogger Information
Blog 20
fans 0
comment 0
visits 39955
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
正则表达式中 *
Time
Original
1824 people have browsed it
* 是一个限定符,用来修饰前一个字符或分组,限定匹配重复的数量为任意数量。
  1. 例:正则表达式 a* 可以匹配 a aa aaa aaaa aaaaaaa等等。
  2. 例:正则表达式 (ab)* 可以匹配 ab abababab ababababababab等等。
  3. 需要注意个是,*与+不同,+要求重复数量至少为1,*则可以为0,所以字符串为空也是可以匹配的。
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post