Home Forums SQL Server 2012 SQL Server 2012 - T-SQL Find integer at end of a string. There *must* be a better solution ? RE: Find integer at end of a string. There *must* be a better solution ?
Thorkil Johansen
Old Hand
Points: 311
More actions
July 26, 2013 at 12:34 am
#1636044
Hi Tom
I have the assumption that only one hyphen will be in the string, but if the case was
xyz-1-2.3-2
then 2 would be the right answer...
To sharpen a little: "The integer to the right of the last hyphen in the string"
/T