I'm trying to get some regex to parse some values stored in a set of lua files, each line looks something like one of these two lines
ITEM.ID = 'item_clock';\r\nITEM.Cost = 150;\r\n.
when I run my regex pattern on the first line I get an expected result
>>> re.search("ITEM.(?P<key>[a-zA-Z]\w) = (?P<value>.*);", line).groupdict()
{'key': 'ID', 'value': "'item_clock'"}
however when I run it on the second line, I don't get a Match object.