regex - add a new line at the beginning after every point | cut sentences in new line
-
good day. I have many sentences in a single line. For exemple:
I go home. My mother is with my sister. I love Pepsi. I need somebody to love me. I have to make some exercises.
My desire output:
I go home. My mother is with my sister. I love Pepsi. I need somebody to love me. I have to make some exercises.
My solution is:
Search:
[=.:].*
Replace by:\n$0
But is not quite very best solution, because it brings also the point at the beginning of the new line.
-
Search for:
\. +
(literal full stop with one or more trailing space characters)
Replace with:.\r\n
(full stop with trailing CR+LF) -
@dinkumoil said:
.\r\n
and if there are many special characters instead of point, such as
=:*
? How can I change it?For example:
I go home= My mother is with my sister: I love Pepsi. I need somebody to love me* I have to make some exercises*
-
Search for:
([.:=*]) +
Replace with:\1\r\n