function findSubstringInString(mainStr, pattern) {// 使用 match() 查找给定的模式var result = mainStr.match(pattern);if (result !== null) {// 如果找到了匹配项,则返回匹配的结果return "Match found: " + ...