Forums Register Login
Remove Punctuations with regex
IS there a way to remove punctuations in a String with Regex and Pattern matching?
Try the replaceAll method with punctuation passed as the first argument.
Read the API for java.util.regex.Pattern. There's a POSIX character class that matches punctuation.

Here's a great resource for better understanding of regex:
Learn How to Use and Get The Most out of Regular Expressions
I like the regular expression trail in the Java� Tutorials.
Let me tell you a story about a man named Jed. He made this tiny ad:
Rocket Oven Kickstarter - from the trailboss

This thread has been viewed 2429 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 22, 2018 14:39:18.