Trying to import a string using python in Zapier
<p>I'm using the Zapier code action with python to try and extract the name from this following message:</p>

<pre><code>_id: 57455fc20913b2f400c2671d
actions: []
authorId: 0d0e129c5913b613a49531b9
name: Tiny Meerkat
received: 1464164290.1
role: appUser
source: {u'type': u'web'}
text: Hello
</code></pre>

<p>Using this code: </p>

<pre><code>import re
name = re.search('(?&lt;=name:)(.*?)(?=received)', input['messages'])
return {
    'name': name if name else 'empty'
}
</code></pre>

<p>The value returned is always empty. Does anyone have any ideas why?</p>