📜  清理字符串 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:21.858000             🧑  作者: Mango

代码示例1
function sanitizeString(str){
    str = str.replace(/[^a-z0-9áéíóúñü \.,_-]/gim,"");
    return str.trim();
}