MaRCeLO PeReiRA <gandalf_mp@xxxxxxxxxxxx> writes: > Is there a way to execute a regex, inside a SELECT > statement, to substitute things? There's a regex_replace() function in recent PG versions. Or you could write a function in plperl or pltcl to use the regex capabilities of those languages. regards, tom lane