js 正则表达式获取字符串开头结尾的数字 正则var str = '111_abc_222'var match = str.match((^d+)|(d+$)g)var num1 = match[0]var num2 = match[1]alert2023-04-23JavaScript140