DEV Community

Nagarajan R
Nagarajan R

Posted on

Answer: How to add a comma to the last character of a line in a textfile

You could search for ([^\n])$ and replace it by \1, – depending on your RegEx engine.

Top comments (0)