convert newlines to windows newlines
I want to convert all newlines in my input string to windows newlines (rn
). So I want to apply the following mapping:
How to allow newline characters in a regex?
This is my regex:
I want to convert all newlines in my input string to windows newlines (rn
). So I want to apply the following mapping:
This is my regex: