Search code examples
regexsublimetext3sublimetext

Matches the starting position within the string in the Sublime text


How can I match starting position of the line by using regular expression in the Sublime text? (inverse of "\n") For example I need insert "+" in the beginning of each lines.

Before:

First
Second
Third

After:

+First
+Second
+Third

I have tried to use "\^" but that didn't work


Solution

  • Find: ^(.*), replace with +$1.