I am formatting lists. Nearly all the issues have been fixed. But there's trouble with the following:
$line = "137 ARBICKLE, Dougal Bruce
20 Every Street Some Town, Musician 138 ARBUCKLE, Edith"
$change = $line -replace '([\n\r])(\d)', ' $2'
$change
Here the sample text has NO backtick for ignoring newlines. I have simply pasted in the way it appears in original file. Because I need to replace newlines that are breaking up the text within the output lines. The regex was tested here
Output is:
20 Every Street Some Town, Musician 138 ARBUCKLE, Edith
After reading about_Quoting_Rules I tried single quotes but no dice.
I don't understand. I expected this output:
137 ARBICKLE, Dougal Bruce 20 Every Street Some Town, Musician 138 ARBUCKLE, Edith