正则匹配提取数字和字母

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