FindAllSubmatch与FindSubmatch区别//匹配一个非元音字母,一个元音字母,一个非元音字母someRegex,_:=regexp.Compile(`[^aouiye]([aouiye])([^aouiye])?`)m1:=someRegex.FindAllStringSubmatch("somestri",-1)m2:=someRegex.FindStringSubmatch
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号