// Source - https://stackoverflow.com/a/41551456 // Posted by Mr_Pink, modified by community. See post 'Timeline' for change history // Retrieved 2026-05-14, License - CC BY-SA 3.0 func IsMatchingRegex(s string, regex string) bool { return regexp.MustCompile(regex).MatchString(s) }