$ 0 0 In postgres this would be: select substring(Version from 5 for 3) from table where Version like '%WEB%'