正则表达式匹配一个独立的字符

String.format("(?<![\\u4E00-\\u9FA5aa-zA-Z0-9_])%s(?![\\u4E00-\\u9FA5a-zA-Z0-9_])","独立字符不与任何其他字符相连")

猜你喜欢

转载自www.cnblogs.com/wanshiming/p/12202559.html