I know there is an easy way to give a WHERE condition matching a regexp in MySQL, but my question is different. The column is like this:
jknewfjnkewnjkfewnjfwe1jnkf2jnw wefwef 1234567.12345678 qwrqwerqwrq
jnewdnkewjk ewnfewf1 wefwefew2 1234568.22314152 qwrqwrqwr qw
whjefjwefwe1 wefwefwef2 qweqwrqrw 1234369.21213131 qwdqwdqwd
I would like to get a SELECT column SUBSTRING phrase, which returns for me:
selectcol1 selectcol2
1234567 12345678
1234568 22314152
1234369 21213131
All I know: first matching number is 7 digits, and 2nd matching number is 8 digits always, and the parts before and after surely won't match the exactly 7 digit pattern.
Is there any way to get these SELECT columns?