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$0But 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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login