java - what regular expression can match the [ and ] characters? -
I'm trying to change the Java method, replace all (), all the characters that match a given reg ,
Therefore, I need to use it as a paragraph that matches [and].
I have tried [[| ] Or ([|]) but they do not work.
You need to avoid them:
\ [and \ ]
Comments
Post a Comment