Created
October 28, 2016 02:26
-
-
Save joefromct/e40ddcce88a292db401e68e6bcfd762b to your computer and use it in GitHub Desktop.
This file contains 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
with | |
t as (select 'Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium'::text as t ), | |
select | |
t, | |
reverse( | |
regexp_replace((reverse(t::text)), E'(.{0,63} )(.*)' ,' \1 ') ) | |
as test | |
from t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment