Re: Emulating flexible regex replace - Mailing list pgsql-general

From twoflower
Subject Re: Emulating flexible regex replace
Date
Msg-id 1414131890727-5824109.post@n5.nabble.com
Whole thread Raw
In response to Emulating flexible regex replace  (Francisco Olarte <folarte@peoplecall.com>)
Responses Re: Emulating flexible regex replace
List pgsql-general
Thank you Francisco, that's a clever idea. However, I don't think this would
reduce the complexity since the target pattern can contain

1) regular back-references (referencing to matches of its own)
2) the special source text references I mentioned

Obviously, these will have to be written in a different way and this I
believe brings me back to start (or in other words, it's not a silver bullet
obviating the need to rewrite the target pattern manually).

I will probably end up writing a function in PL/Perl which Tom Lane
suggested since I'm apparently not skilled in SQL enough to be able to do it
using a single query without using custom functions.



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Emulating-flexible-regex-replace-tp5824058p5824109.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: blackbee045
Date:
Subject: Re: Emulating flexible regex replace
Next
From: Александр Глухов
Date:
Subject: ARMv5