, Ranch Hand
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.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards
This thread has been viewed 2328 times.
All times above are in ranch (not your local) time.
The current ranch time is
Dec 17, 2017 22:18:39.