How to convert specific character sequences in a string to upper case using Python?
<p>I am looking to accomplish the following and am wondering if anyone has a suggestion as to how best go about it.</p>

<p>I have a string, say 'this-is,-toronto.-and-this-is,-boston', and I would like to convert all occurrences of ',-[a-z]' to ',-[A-Z]'.  In this case the result of the conversion would be 'this-is,-Toronto.-and-this-is,-Boston'.</p>

<p>I've been trying to get something working with re.sub(), but as yet haven't figured out how how</p>

<pre><code>testString = 'this-is,-toronto.-and-this-is,-boston'
re.sub(r',_([a-z])', r',_??', testString)
</code></pre>

<p>Thanks!</p>
