Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Python regex to find repetitive word count

Language: Layout:
+ ] Show input
Absolute running time: 0.15 sec, cpu time: 0.1 sec, memory peak: 4 Mb, absolute service time: 0,16 sec 
edit mode |  history  | discussion
actual regex output ===>  ['Hi', 'so', 'to', 'to', 'to', 'write']
End result ==> Counter({'to': 3, 'write': 1, 'hi': 1, 'so': 1})
actual regex output ===>  ['KSR', 'are', 'you', 'KSR', 'KSR']
End result ==> Counter({'ksr': 3, 'you': 1, 'are': 1})

    
                
λ
.NET NoSQL database for rapid development