Java Replace Regex not working -


why doesn't line of code work? it's supposed replace punctuations nothing.

m = m.replace("[\\?\\.;:'\"]", "") 

m not change after executing line in java though contains punctuations. why?

this because replace takes string; need call replaceall, take regular expression.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -