Sublime Forum

How to insert a space at the beginning of a line in a "for next" code loop

#1

How to insert a space at the beginning of a line in a “for next” code loop (.NET regular expressions)

I am trying to add spaces at the beginning of lines matched with look arounds

for
line of code
line of code
line of code
line of code
next

and this is the output I want to get

for
  line of code
  line of code
  line of code
  line of code
next

Please help me with .NET regular expressions

0 Likes