Say I have the following SQL output:
(12, 'name'),
(233, 'name2'),
(2, 'name3'),
...
How do I match the numbers with REGEX in order to remove them? I would like the result to look like:
('name'),
('name2'),
('name3'),
...
Thank you very much!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, to match the numbers use this:
That one grabs any numbers, a comma, and any whitespace that occurs after the comma. As for how to replace that with an empty string, it depends heavily on what you are running this with (PHP, Perl, sed, etc…)