I have a requirement where I have to fetch prefix in a text excluding right hand side digit pattern.
For ex: AB9T0005 should give me only AB9T
AB9T-K1A-0005 should give me only AB9T-K1A-
What I mean is prefix may include any input including numbers and other alpha numeric values.
With out using regular expression I will parse from right to left till I find non numeric value and will take substring of it.
I have used following regular expression \b(?<=.*)\d*\b but of no use?
It is failing for this input abc123
Can any one help me in this?
Thanks in Advance
Naga