0

Hi all,

I would like to replace new lines with "<BR>" in a text file. I'm executing the following line in Powershell:

[regex]::Replace((Get-Content "testfile.txt"), "\.``n", ".<BR>", "Singleline")

The contents of testfile.txt:

Some text here for paragraph one.

More text for paragraph two.

Edited by RudyM

1
Contributor
1
Reply
9
Views
8 Months
Discussion Span
Last Post by RudyM
2

Had to make it \r`\n` when in the powershell script. Stupid backtick issue in the format, but basically \r\n.

Edited by RudyM

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.