P
Peter Enis
hello,
does anyone know how to use variables in regular expressions?
var = '%%bob%%'
replace = 'bob'
var = re.sub("%%[^%%]*replace%%', 'peter', var)
how do i have to mask the replace-variable?
thanx
does anyone know how to use variables in regular expressions?
var = '%%bob%%'
replace = 'bob'
var = re.sub("%%[^%%]*replace%%', 'peter', var)
how do i have to mask the replace-variable?
thanx