主要原因是因为小程序的基础库版本太低,不支持正则表达式,所以应该改下基础库的版本。
原文:https://blog.csdn.net/Cooler_max/article/details/88656609