Hi,
I'm trying to 'grep' the string which comprises of all non-zero values
0x0000000a in this case.
This works but in this case, but not over any string as in if example is:
What would be the regex for picking out the string that doesNOT match pattern '0x00000000'?
Thanks in advance...
I'm trying to 'grep' the string which comprises of all non-zero values
0x0000000a in this case.
Code:
>>> match = re.search('0x0000000[1-9,a-z]', "My values are value=0x00000000 0x00000000 0x0000000a 0x00000000 0x00000000 0x00000000")
This works but in this case, but not over any string as in if example is:
This wont pick out 0x00000a00 correctly ,"My values are value=0x00000000 0x00000000 0x00000a00 0x00000000 0x00000000 0x00000000")
What would be the regex for picking out the string that doesNOT match pattern '0x00000000'?
Thanks in advance...