In the Sublime Text editor window there are two lines:
011 011 I need to turn this into:
0;1;1 0;1;1 Those. put a semicolon after each digit. If the number is at the end of the line, then after it ; not put .
Now I do it in two bars:
1) find: (\d) replace: $1; I get:
0;1;1; 0;1;1; 2) Delete ; , those at the end - find ;$ replace:
and get what I wanted:
0;1;1 0;1;1 How do I do the same thing, but with one regular expression?