判断字符串符合 (数字)(字母)0x20(空格),0x2d(-),0x2e(.),0x2f(/),0x5f(_)
private Boolean strCheck(String str) { if (!StringUtils.isEmpty(str)) { return str.matches("[\\s0-9a-zA-Z_/.-]*"); } return false; }原文链接:https://www.f2er.com/regex/361188.html
判断字符串符合 (数字)(字母)0x20(空格),0x2d(-),0x2e(.),0x2f(/),0x5f(_)
private Boolean strCheck(String str) { if (!StringUtils.isEmpty(str)) { return str.matches("[\\s0-9a-zA-Z_/.-]*"); } return false; }原文链接:https://www.f2er.com/regex/361188.html