Last active
December 26, 2015 21:52
-
-
Save caged/7f7c3a7f195b588c67f5 to your computer and use it in GitHub Desktop.
Extract the first character of each string part separated by the '-'. There can be an unknown number of potential parts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select array_to_string(array_agg(i), '') from | |
(select (regexp_matches('Letter-1-2', '[A-Z0-9]', 'g'))[1] i) t; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected results: