Replace lines of file A using advanced regex and write to file B

https://docs.julialang.org/en/v1/base/io-network/#Base.readline

When keep is false (as it is by default), these trailing newline characters are removed from the line before it is returned

Use $ instead to match the end of the line or pass keep=true.

1 Like