I have a list of 10 digit numbers in a txt file. I want to put the same character in the beginning of all rows using regex, without changing the numbers.
I also want to put the character at the end of all rows
For example a quote character '
Set of numbers as sample:
7101756638
7101756639
7107429322
7107429323
7108270737
7109747487
When I do this:
- Search for:
\d{10,10}
- Replace with:
'\d{10,10}'
I get this:
'd{10,10}'
'd{10,10}'
'd{10,10}'
'd{10,10}'
'd{10,10}'
'd{10,10}'
^([0-9]{10})$
replace it with'$1
? If they are not in the same line, find([0-9]{10})
and replace it with'$1
?