I want to declare a regex as r'tata.xnl.*-dev.1.0' in the list element and it should match tata.xnl.1.0-dev.1.0
,how to solve this problem?.
productline = '8.H.5'
pl_component_dict = {'8.H.5': [r'tata.xnl.*-dev.1.0','tan.xnl.1.0-dev.1.0'],
'8.H.7':['']
}
component_branch = "tata.xnl.1.0-dev.1.0"
if component_branch in pl_component_dict[productline] :
print "PASS"
else:
print "ERROR:Gerrit on incorrect component"
Error:-
ERROR:Gerrit on incorrect component