Hi all,
how do i include variable as a part of the regex string ? - i mean variable interpolation. like :
##########code ##########
#!/usr/bin/env python
import re
str = "abc"
p = re.compile('str') # defeats the purpose - literal string 'str'
##########code ##########
any suggestions ?
thanks in advance
KM