I am creating steps in Notepad++ to convert code from one form to another. For each line, I want to add "+@lin" at the beginning, then for each tab that follows add a "+@tab",then a single quote, then whatever remains, then another quote. Example:
Hi,
adorable SO ppl!
should become
+@lin+'Hi'
+@lin+@tab+'adorable SO ppl!'
I have managed this in two steps:
First: replace ^(\t*)(.*)$ with \+@lin\1\+'\2'
Second: replace \t with \+@tab
I am wondering if this can be done better with a single replace. Can it be done?
One think I thought: Is it possible to use the asterisk of the \1 capture group to replace each \t instance with something else?
