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,})/