ooops,select col, substring(col,1,patindex('%[^0-9][0-9]%',col)) + ltrim(cast(substring(col,patindex('%[^0-9][0-9]%',col)+1,patindex('%[0-9][^0-9]%',col)-patindex('%[^0-9][0-9]%',col)) as int)) + substring(col,patindex('%[0-9][^0-9]%',col)+1,len(col)) as replaced /*,case patindex('%[^0-9]0%',col) when 0 then col else replace(col,'0','') end as replaced_bad*/from (select 'scr0989y' as col union all select 'sbh1309m' union all select 'ev0099y' union all select 'ev009909900y' union all select 'scr4000y' )trockmoose