^(0*(x|X)[0-9,a-f,A-F]{1,2}) is pattern for catching HEX values ( like \0x1F or \x1F)
^(0[0-7]{1,3}) is pattern for catching OCT values (like \034)