clipped from: forums.databasejournal.com   
skhanal
06-13-2003, 01:38 PM
Try this

SELECT substring(@charValue, patindex('%[a-Z,1-9]%',@charValue), len(@charValue) - patindex('%[a-Z,1-9]%',@charValue) + 1)

Or without the comma

SELECT substring(@charValue, patindex('%[a-Z1-9]%',@charValue), len(@charValue) - patindex('%[a-Z1-9]%',@charValue) + 1)

jumpshift
06-13-2003, 01:46 PM
thanks, skhanal! that worked perfectly. i figured it had to be something simple like that. you made my day :D