Ruglare expermetion in python is not match : I'm doing regular expression on python. I spend much time to fix and to know why the regular expression doesn't work or match. I  post the text and my code here. May I know what is wrong with my code: 


The text is : 



    [pid 30101] 04:15:46 writev(25, [{"\0\225ub'\375[\340\244\6/", 11}, {"\4", 1}, 
    {"Id before\0", 17}, {"Id\0", 10}], 4) = 39
    [pid 30101] 04:15:46 getuid()           = 10168
    [pid 30101] 04:15:46 getuid()           = 10168
    [pid 30101] 04:15:46 ioctl(8, BINDER_WRITE_READ, 0x7fc0656648) = 0
    [pid 30101] 04:15:46 ioctl(8, BINDER_WRITE_READ, 0x7fc0656648) = 0
    [pid 30101] 04:15:46 fstat(33, {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 62), 
    ...}) = 0
    [pid 30101] 04:15:46 fstat(33, {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 62), 
    ...}) = 0
    [pid 30101] 04:15:46 ioctl(33, ASHMEM_GET_SIZE, 0) = 84
    [pid 30101] 04:15:46 dup(33)            = 34
    [pid 30101] 04:15:46 close(33)          = 0
    [pid 30101] 04:15:46 dup(34)            = 33
    [pid 30101] 04:15:46 fstat(33, {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 62), 
    ...}) = 0
    [pid 30101] 04:15:46 ioctl(33, ASHMEM_GET_SIZE, 0) = 84
    [pid 30101] 04:15:46 mmap(NULL, 84, PROT_READ, MAP_SHARED, 33, 0) = 
    0x7d517db000
    [pid 30101] 04:15:46 fstat(33, {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 62),...}) = 0
    [pid 30101] 04:15:46 ioctl(33, ASHMEM_GET_SIZE, 0) = 84
    [pid 30101] 04:15:46 fstat(34, {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 62), 
     ...}) = 0
    [pid 30101] 04:15:46 fstat(34, {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 62),...}) = 0
    [pid 30101] 04:15:46 ioctl(34, ASHMEM_GET_SIZE, 0) = 84
    [pid 30101] 04:15:46 close(34)          = 0
    [pid 30101] 04:15:46 getuid()           = 10168
    [pid 30101] 04:15:46 writev(25, [{"\0\225ub'\375[\260y\3274", 11}, {"\4", 1}, 
    {"After\0", 16}, {"eb41e1a15da0b8ee\0", 17}], 4) = 45
    [pid 30101] 04:15:46 ioctl(8, BINDER_WRITE_READ, 0x7fc0656ee8) = 0
    [pid 30101] 04:15:46 ioctl(8, BINDER_WRITE_READ, 0x7fc0656ee8) = 0


and here is my code: 


    import re
    text = open('textfile.txt').read()
    pid= str(30101)
    if re.findall(r"^.* " + pid +"] \d\d:\d\d:\d\d getuid()^.*" + pid +"]\d\d:\d\d:\d\d ioctl\(8\, BINDER_WRITE_READ\, 0x7fc0656648\)^.*" + pid +"] \d\d:\d\d:\d\d fstat\(33\, \{st_mode=S_IFCHR\|0666\, st_rdev=makedev\(10\, 62\)\, 
    ...\}\).*", text, re.M):
       print 'found a match!'
    else:
       print 'no match'