Hi! I want to store the numbers in a variable be it positive or negative! I've tried this: For example This is the data in a list. data = [u'\x1b[0m[\x1b[1m\x1b[0m\xbb\x1b[0m\x1b[36m]\x1b[0m (A=-5,B=5)', u'\x1b[0m[\x1b[1m\x1b[0m\xbb\x1b[0m\x1b[36m]\x1b[0m (A=5,Y=5)', u'\x1b[0m[\x1b[1m\x1b[10m\xbb\x1b[0m\x1b[36m]\x1b[0m : '] How do I extract the integer values of A and B (negative and positive) and store them in a variable so that I can work with the numbers? I tried smth like this but the list is empty .. for line in data[0]: pattern = re.compile("([A-Z]=(-?\d+?),[A-Z]=(-?\d+?))") store =