Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下正则表达式
^\d+(\,\.\d+)?$
我正在尝试匹配以下内容
我的表达不起作用,我正在寻找建议。谢谢!
^\d+([,.]\d+)?$
您有一系列逗号和句号,而不是一组。