str = str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*",""); 请问其中的\\pP代表什么意见?

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/28 06:20:54
str=str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*","");请问其中的\\pP代表什么意见?str=str.replaceAll("[\\pP|~|$|^||\

str = str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*",""); 请问其中的\\pP代表什么意见?
str = str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*",""); 请问其中的\\pP代表什么意见?

str = str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*",""); 请问其中的\\pP代表什么意见?
\\pP代表标点符号
可以参考java api中的Pattern类的相关内容:
\p{Punct} 标点符号:!"#$%&'()*+,-./:;?@[\]^_`{|}~