Replacing them with Spaces or another innocuous character, and then treat the resultant string as if it were just a regular string (with the date in the middle).
用空格或其他无害字符替换它们,然后将结果字符串视为只是一个常规字符串(日期在中间)。
Therefore the regular expression A*B will match the strings AB, AAB, AAAB, or any other string starting with an A and ending with a single B.
因此,正则表达式 A*B 将与字符串 AB 、 AAB 、 AAAB 或任何其它以 A 开头并以单个 B 为结尾的字符串相匹配。
In contrast to re (regular expressions), string functions are generally much faster, and in most cases they are easier to understand and maintain.
与re(规则表达式)相比,string函数通常更快速,大多数情况下他们更易于理解和维护。
应用推荐