Reputation: 3635
I have a DB file. In that file there are many rows that contain phone number like this :
"a",93560050,"b"
I want to surround it with ""
to have it like this :
"a","93560050","b"
How can I do this?
Upvotes: 1
Views: 30
Reputation: 64
You only need to search like this:
(\d{8})
then you can replace with
"\1"
so you have the quotation.
Upvotes: 2
Reputation: 91498
Because phone mumbers are only numeric and there're no other numbers than phone number, you can do:
\d+
"$0"
Upvotes: 2