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.
我想使用正则表达式从至少 9 位长度的文本字段中删除连续的数字字符串。数字之间不应有任何字母,但允许空格
例如
ABCD 123456789 -> 123456789 123M4567 -> blank 1234567890 ABCD -> 1234567890 123 456 789 ABCD -> 123456789 or 123 456 789 will also be fine
尝试这个...
/(\d{9,})|([\d\s]{11,})/