You can use this following code, assuming all of the following strings will be in the same format:
>>> info = '127.0.0.1 - - [24/Feb/2014:03:36:46 +0100] "POST /info HTTP/1.1" 302 0 "http://website.com" "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36" "name=josh&zipcode=12345"'
>>> name = info.split()[-1].split('&')[0].split('=')[1]
>>> code = info.split()[-1].split('&')[1].split('=')[1]
>>> name
'josh'
>>> code
'12345'
The first .split() is to get the entire string as a list.
The [-1] is to get the last item in the list.
The .split('&') is to split the last sequence by the '&'.
The [0] or [1] is to specify which value we want to obtain, the name or the code.
The split('=') is to split each value by the equals sign, so that we can obtain the name or the code as one value.
The last [1] is to get the last value, basically to exclude the 'name' or 'zipcode'.