Replacing : with "${" at the beginning of the word and adding "}" at the end of the word

zljubisic at gmail.com zljubisic at gmail.com
Wed Oct 3 07:59:30 EDT 2018


Yes it is. Thanks.

> A slightly better solution would be:
> 
> cnv_sel = re.sub(r":(\w+)", r"${\1}", sel)




More information about the Python-list mailing list