2005-01-17, 03:57
hello there.
i think i found a bug in xbmc python.
when using regular expressions the method re.findall() doesn't work. you have to compile the pattern first and then use the findall() with that pattern.
this doesn't work:
pattern = any pattern
result = re.findall(pattern, data, re.dotall|re.ignorecase)
this works:
pattern = any pattern
x = re.compile(pattern, re.dotall|re.ignorecase)
result = x.findall(data)
i think i found a bug in xbmc python.
when using regular expressions the method re.findall() doesn't work. you have to compile the pattern first and then use the findall() with that pattern.
this doesn't work:
pattern = any pattern
result = re.findall(pattern, data, re.dotall|re.ignorecase)
this works:
pattern = any pattern
x = re.compile(pattern, re.dotall|re.ignorecase)
result = x.findall(data)