Sublime Forum

Regex Search and Replace

#1

I am using a regex to insert a double-quote at the beginning of each line. My regex is simply ^. I am replacing it with ".

However, when I hit the replace all button, not only does it do it, it also inserts a blank line, except for a quote at the beginning.

For example

ABCDE

becomes

"ABCDE
"

I am using ST 2 on Ubuntu. My setting for line ending is** “default_line_ending”: “system”**,

Any ideas on what I am doing wrong?

0 Likes