KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
So I want to split a string in java on any non-alphanumeric characters. Currently I have been doing it like this words= Str.split("\\W+"); However I want to keep apostrophes("'") in there. Is there any regular expression to preserve apostrophes but kick the rest of the junk? Thanks.
Tags (comma-separated)
Save Edits
Cancel