I have a column in my table that contains a text record of some large logging data. These fields will have a 9 digit number (0-9) that starts with "3".
I simply want to select only the pattern from this field, not the whole field. And to make things complicated, this pattern can be in a field more than once.
I think the REGEX
I need is 3{8}[0-9]
this?
Is there a MySQL way only to do this? I'd rather not have to write a php script to extract this data.
EDIT: It seems this is not possible with REGEX - can it be done with any of the other MySQL String functions?