I am trying to insert a newline character using a regex replace like so:
strFile = Regex.Replace(
strFile,
@"(FA|BO)s+(d{3}-d+)(s+)(.*?)(s+)(d+,*d*.d+)s*(FA|BO)s+(d{3}-d+)(s+)(.*?)(s+)(d+,*d*.d+)s*",
@"$2&$4&$6
$8&$10&$12"
)
but I end up with (literally) word
word
rather than an actual newline.
What am I doing wrong?
See Question&Answers more detail:os