MCPcopy
hub / github.com/pingc0y/URLFinder / RegexpMatch

Function RegexpMatch

util/utils.go:237–243  ·  view source on GitHub ↗
(pattern, value string)

Source from the content-addressed store, hash-verified

235}
236
237func RegexpMatch(pattern, value string) bool {
238 re, err := regexp.Compile(pattern)
239 if err != nil {
240 return false
241 }
242 return re.MatchString(value)
243}
244
245// 文件是否存在
246func Exists(path string) bool {

Callers 3

SpiderFunction · 0.92
domainNameFilterFunction · 0.85

Calls

no outgoing calls