阅读背景:

为什么我需要在Java Regex中使用两个斜线来查找“+”符号?

来源:互联网 

Just something I don't understand the full meaning behind. I understand that I need to escape any special meaning characters if I want to find them using regex. And I also read somewhere that you need to escape the backslash in Java if it's inside a String literal. My question though is if I "escape" the backslash, doesn't it lose its meaning? So then it wouldn't be able to escape the following plus symbol?Just something I don't understand the full mean




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: