Converting a hex string to a number
Matt Gerrans
mgerrans at mindspring.com
Wed Jul 10 01:47:31 EDT 2002
> string = "0x0+__import__('os').system('echo 7h1s b0x 1s 0wn3d')"
As I said, someone will probably suggest a better re; how's this:
r'^0x(\d|[a-f])*$'
More information about the Python-list
mailing list