正则匹配提取数字和字母

'  1-a, 2-c,.    3-v#$%  '.replace(/[^A-Za-z0-9]/g,'')   // '1a2c3v'
posted @ 2022-07-22 15:16  IslandZzzz  阅读(182)  评论(0编辑  收藏  举报