The data contains a series of names of the format:
ABC123456
XYZ987654
DE-234567
The query
select distinct(substring(field, '([A-Z]{1,3})')) pref, count(*) tot from table;
identifies entries with characters. The question is: what is the escape character pull the '-' character along with the alpha characters. The '-' character is used in the select character sequence [A-Z]. How can that selection sequence be extended to include the '-' character.
distinctis NOT a function