str = str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*",""); 请问其中的\\pP代表什么意见?
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/02 02:30:23
![str = str.replaceAll(](/uploads/image/z/14735902-22-2.jpg?t=str+%3D+str.replaceAll%28%22%5B%5C%5CpP%7C%7E%7C%24%7C%5E%7C%7C%5C%5C%7C%7C%5C%5C%2B%7C%3D%5D%2A%22%2C%22%22%29%3B+%E8%AF%B7%E9%97%AE%E5%85%B6%E4%B8%AD%E7%9A%84%5C%5CpP%E4%BB%A3%E8%A1%A8%E4%BB%80%E4%B9%88%E6%84%8F%E8%A7%81%3F)
str = str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*",""); 请问其中的\\pP代表什么意见?
str = str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*",""); 请问其中的\\pP代表什么意见?
str = str.replaceAll("[\\pP|~|$|^||\\||\\+|=]*",""); 请问其中的\\pP代表什么意见?
\\pP代表标点符号
可以参考java api中的Pattern类的相关内容:
\p{Punct} 标点符号:!"#$%&'()*+,-./:;?@[\]^_`{|}~