2
I have the following sequence:
3531399402
It has 10 numbers, with this regex I can list these occurrences:
^\d{10}$
I am using a text editor and I need to replace these occurrences and insert a 0 before getting like this:
03531399402
How can I do ?
Which editor? Notepad++? Eclipse?
– Jefferson Quesado
Sublime Text
is the editor.– Roknauta
An alternative is to put everything into a grouping and use the retrospective, something like
s/^(\d{10})$/0\1/
– Jefferson Quesado
I did not understand rsrs well, and I glued here and it did not function.
– Roknauta
Boot in the research
^(\d{10})$
(same as your example, but with a parenthesis around the characters); in the substitution field by0\1
; that\1
is a retrospection component, will be replaced by the contents of the first group.– Jefferson Quesado