There is a string and how can I list them with regex?
a string:= " this is a test. this is a new test".
Reading string from a file and want to generate a list like:
1. this is 2
2. is a 2
3. a test 1
4. test this 1
5. a new 1
6. new test 1
The integer after the pair is occurrence.
Thank you in advance.
View Complete Post