find index number of uppercase character in a string
<pre><code>string = "heLLo hOw are you toDay"
results = string.find("[A-Z]") &lt;----- Here is my problem
string.lower().translate(table) &lt;--- Just for the example.
&gt;&gt;&gt;string
"olleh woh era uoy yadot"
#here i need to make the characters that where uppercase, be uppercase again at the same index number.
&gt;&gt;&gt;string
"olLEh wOh era uoy yaDot"
</code></pre>

<p>i am need to find the index number of the uppercase characters in the string above, and get a list (or whatever) with the index numbers in order to use again on the string, to bring back the uppercased characters at the same index number.</p>

<p>maybe i can solve it the the re module, but i didn't find it any option to give me back the index numbers.
hope it understandable, i have done a research but couldn't find solution to it.
Thanks.</p>

<p>BTW, i am using python 3.X</p>
