I have a line in a file that opens in notepad ++
0 <? 0.00 - (multi) Salt
Note. There are 2 leading spaces at the beginning of the line.
Using the replacement of regular expressions in just one pass, I have to change the above line as follows:
0,0.00,multi,Salt
I tried: replace
( \d*) <\? \d.\d\d - \(multi\) *
from
\1,\2,multi,
It works great. Only problem is adding leading space to every line in notepad ++
How to change my regular expression so as not to add a start space at the beginning of each line?
Note L I cannot use the option "Trim Leading space in notepad".
Can someone please help me with this?
Thanks in advance!
Note. There are more lines in my file, e.g.
0 <? 0.00 - (multi) Salt
1 <? 0.00 - (multi) Vinegar
2 <? 0.00 - (multi) Salt and Vinegar
3 <? 0.00 - (multi) BBQ Sauce
4 <? 0.00 - (multi) Chilli Sauce
5 <? 0.00 - (multi) Hawaiian Sauce
6 <? 0.00 - (multi) Brown Sauce
7 <? 0.00 - (multi) Garlic Mayo and Herb Sauce
8 <? 0.00 - (multi) Mayo
9 <? 0.00 - (multi) Salad
10 <? 0.00 - (multi) Lettuce
11 <? 0.00 - (multi) Cabbage
