I just want to replace the following string:
This is my first sentence.
.:.
This is my second sentence.
.:.
This is my third sentence.
.:.
The output should be like:
This is my first sentence.
1
This is my second sentence.
2
This is my third sentence.
3
How can I do it in more efficient and easy way?