标签: javascript regex
这个正则表达式:
'2nd, 2nd'.match(/(?:([0-9]+)(?:st|nd|rd|th)?)*/g)
...返回以下匹配项:
["2nd", "", "", "2nd", ""]
什么是空字符串匹配?