We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
写一个函数,匹配输入字符串里的所有数字部分,数字至多包含两位小数,返回包含所有匹配结果的数组,并去重。
The text was updated successfully, but these errors were encountered:
function filterStr(str) { return [...new Set(str.match(/\d{1,}\.\d{1,2}|\d{1,}/g))] }
Sorry, something went wrong.
No branches or pull requests
写一个函数,匹配输入字符串里的所有数字部分,数字至多包含两位小数,返回包含所有匹配结果的数组,并去重。
The text was updated successfully, but these errors were encountered: