2

I have text formatted like this:

:AGG NUMBER 1
:TYPE Alfa
any text 1
line 2 
anythihng
:END

:AGG NUMBER 2
:TYPE char
other any text 1
line 2 
:END

I need to add a tab character at the beginning of all lines between :TYPE and :AND.

:AGG NUMBER 1
:TYPE Alfa
    any text 1
    line 2 
    anythihng
:END

:AGG NUMBER 2
:TYPE char
    other any text 1
    line 2 
:END

How do I add tab chars with regex ?

1
  • 1
    It would help if you formulate a question in the body of the question, not just in the title. Apr 9, 2014 at 21:02

1 Answer 1

1

Find what : ^[^\:]\w+

Replace with : \t$0

Search Mode : Regular Expression

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .