On 2018-10-02 14:04, zljubi...@gmail.com wrote:
I have to execute the same sql in two different programs. Each of them marks parameters differently.Anyway, I have found the solution. cnv_sel = re.sub(r"(:(.+?)\b)", r"${\2}", sel)
A slightly better solution would be: cnv_sel = re.sub(r":(\w+)", r"${\1}", sel) -- https://mail.python.org/mailman/listinfo/python-list