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

16 lines
356 B
Go
Raw Normal View History

2022-10-14 10:03:29 +08:00
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
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)://")
)