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.
下面的正则表达式模式将返回整个字符串
[0-9]+\:\s[a-zA-Z\s]+$
如果您只想要数字,请使用以下模式
^[0-9]+ or [0-9]+ or ^[0-9]+$