python file
import ConfigParser,re
config=ConfigParser.ConfigParser()
with open("temp.cfg",'r') as config_file:
config.readfp(config_file)
x=[]
x.append(re.compile(r'abc'))
x.append((config.get("ssp",'a')).strip('"'))
print x[0]
print x[1]
config file[temp.cfg]
[ssp]
a:re.compile(r'abc')
output
>>>
<_sre.SRE_Pattern object at 0x02110F80>
re.compile(r'abc')
>>>
What "print x[1]" should give is regular expression object but it seems to be returning string.
Looks like I am not doing it in the right way & am unable to figure it out