Q&A about the site for expert genealogists and people interested in genealogy or family history
with test as (select 'SQL error "ORA-01722: invalid number"' as Title) SELECT SUBSTRING(p.[Title], (PATINDEX('%(ORA|TNS)-[0-9][0-9][0-9][0-9][0-9]%',p.[Title])),10) from test p;