I'm trying to regex-out a hash given in a string from a web-service response. The response given is in the format:
Write this code down, this is your id for the following tasks: P+3zLI8x1AokfbZ1jXat9g== You will need to enter the code in each of the following steps. The next task is somewhat simpler, and demonstrates the process of validating data input to a service. The next method that has been exposed for you is a method called 'girls'. This method takes five parameters, the first four of which are the first names of the members of Girls Aloud, in alphabetical order (a quick search on wikipedia will help out here), and the fifth parameter is your unique id code. Create a windows application to send the correct data and the response will be a string with your next set of instructions.`
The hash I'm interested in is the "id", id est, "P+3zLI8x1AokfbZ1jXat9g=="
. I tried using a regex such as "^:\\w*=$"
but it didn't match it...
Can anyone give me a hand here?
(And, for those intrerested, it is from a simple web-services example from a non-cs course; I'm trying to extract the hash via regex instead of just writing it down.)