Files
EdgeAPI/internal/utils/regexputils/expr.go

16 lines
358 B
Go
Raw Normal View History

2024-07-27 14:15:25 +08:00
// Copyright 2022 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cloud .
2022-10-14 10:03:29 +08:00
package regexputils
import "regexp"
var (
YYYYMMDDHH = regexp.MustCompile(`^\d{10}$`)
YYYYMMDD = regexp.MustCompile(`^\d{8}$`)
YYYYMM = regexp.MustCompile(`^\d{6}$`)
2022-10-14 10:03:29 +08:00
)
2023-06-18 16:20:00 +08:00
var (
HTTPProtocol = regexp.MustCompile("^(?i)(http|https)://")
)