I'm splitting a string by three different characters but I want the output to include the characters I split by. Is there any easy way to do this?
            Asked
            
        
        
            Active
            
        
            Viewed 6.1k times
        
    102
            
            
        - 
                    4I could not find a better place to report, but this question is not a duplicate. One answer keeps the separators with the matches, and the other one keeps the separators on their own as a match – Perdi Estaquel Sep 27 '18 at 00:24
- 
                    3Why is this marked as duplicate and closed as this one is 2 years older than the linked question?? Other one should be marked as duplicate. – watbywbarif Jan 21 '20 at 08:34
- 
                    @watbywbarif duplicate closure direction is not just about which one is older; it's about which one is more broad/canonical and which one has better answers. – TylerH May 07 '20 at 17:14