Replacing : with "${" at the beginning of the word and adding "}" at the end of the word
zljubisic at gmail.com
zljubisic at gmail.com
Tue Oct 2 09:04:35 EDT 2018
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)
Reagards.
More information about the Python-list
mailing list