whats the best way to parse and replace the string with its values ?
Posted
by shahjapan
on Stack Overflow
See other posts from Stack Overflow
or by shahjapan
Published on 2010-06-03T12:00:54Z
Indexed on
2010/06/03
12:04 UTC
Read the original article
Hit count: 213
I may have string like,
"""Hello, %(name)s, how are you today, here is amount needed: %(partner_id.account_id.debit_amount)d """
what would be the best solution for such template may i need to combine regular expression and eval, input string may differ like $partner_id.account_id.debit_amount$ - for the moment I've kept as python string format - just for testing.
© Stack Overflow or respective owner