I have strings like:
" 5473 & 4835 how to find the index"
" 5473 how to find the index"
" 5473 & A-121-2 how to find the index"
" A-121-2 how to find the index"
How can I extract the string up to last digit using regex.
For example, the result I want in above is like this:
" 5473 & 4835"
" 5473"
" 5473 & A-121-2"
" A-121-2"