new ver:
class RegexUtil {
static func extractRegex(_ theRegex: String, _ str2Check: String) -> String {
if let match = str2Check.range(of: theRegex, options: .regularExpression) {
return String(str2Check[match]).trimmingCharacters(in: .whitespaces)
}...