split function (list index out of range)
<pre><code>textData = "SENDER|%|SUB|%|HTML|%|username{*|*}password{*|*}mail{*|*}data1|*|username{*|*}password{*|*}mail{*|*}data1"
genelData = textData.split("|%|")
userData = genelData[3].split("|*|")
for userDataTable in userData:
    usersData = userDataTable.split("{*|*}")
    self.response.out.write("&lt;br&gt;" + usersData[2])
</code></pre>

<p>in this code i try to parse some string data.But when i try to print "usersData" variable everything looks fine.But when i tried to use like "usersData[2]" im getting list index out of range problem.</p>
