I have a field with value :
a:3:{i:0;s:3:"945";i:1;s:3:"946";i:2;s:3:"947";}
Objective is to get the below output (basically all numbers sandwiched between double quotes):
945
946
947
Regex matches have a global matching which returns an array of multiple matches, is there a way to do this in MySQL ?
I tried the below :
SELECT *
FROM (SELECT 'a:3:{i:0;s:3:"945";i:1;s:3:"946";i:2;s:3:"947";}' AS input) T1
WHERE T1.input REGEXP '(")[0-9]+(")';
The query needs to work on a single row only, need not run on full table.