How do I write a regular expression containing the character for line break?
should be contained within a character set e.g. “[,.:;/]” because I want to replace these characters
How do I write a regular expression containing the character for line break?
should be contained within a character set e.g. “[,.:;/]” because I want to replace these characters
Depends on your source, you’d be looking for \r
, \n
, \n\r
.
Alternatively could also use String.Replace with VbCr
, VbLf
, VbCrLf
if you are not restricted to just Regex.