I'm trying to split a string with all non-alphanumeric characters as delimiters yet Java's String.split() method discards the delimiter characters from the resulting array. Is there a way to split a string like the "\W" regex pattern does, yet keep the delimiters?
            Asked
            
        
        
            Active
            
        
            Viewed 3.1k times
        
     
    