判断字符串中是否包含xx
static bool contains(String str, Pattern searchPattern, [int startIndex = 0]) => str != null && str.contains(searchPattern, startIndex);