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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -