Use a regex to capture the base64 encoded string