I'm having an issue extracting a substring in SQL query results.
Here's the situation: I have a column that contains strings in the following format "ax123456uhba", "ax54232hrg", "ax274895rt", "ax938477ed1", "ax73662633wnn2"
I need to extract the numerical string that is preceded and followed by letters. However, occasionally there is a number in the trailing string that I don't need. The length of the trailing characters is not static so I can't just do a simple substring function.
I'm not necessarily asking for completed code, just a helpful push in the right direction if possible.
Thanks in advance for your help.