Ordering in python dictionary
<pre><code>    r_dict={'answer1': "value1",'answer11': "value11",'answer2': "value2",'answer3': "value3",'answer4': "value4",}

    for i in r_dict:
        if("answer" in i.lower()):
           print i

  Result is answer11,answer2,snswer4,answer3
</code></pre>

<p>I am using python 2.4.3 I there any way to get the order in which it is populated</p>

<p>Or is there a way to do this by regular expression since i am using the older python version?</p>
