Michael Blakeley <mike(at)blakeley(dot)com> writes:
> Does postgresql support regex back-references?
There's no such function at the SQL level, AFAIR.
I'd recommend writing a function in either plperl or pltcl, according
to your taste. Both offer pretty much all the string-bashing
functionality you could possibly want ...
regards, tom lane