Extract numbers from a string

Dear,

I have a numeric string consisting of 14 digits, I need to pick 4 digits from the center. Please guide what is the possibility to do that.

For example I have a string 00 12345 6789012 and I need to pick 12345 from this string.

Thanks in anticipation

I found the solution, Thank you.

substr('0012345012345'2,6)