With matched regex character, how can I get its uppercase equivalent?
<p>The basic premise is I want to find a character following another and then replace that with its uppercase equivalent. I'm looking for a more elegant solution than <code>indexOf</code> and a for loop. I've got this far:</p>

<pre><code>'this-is-my-string'.replace(/\-(\w)/,'$1')
</code></pre>

<p>which gives me <code>thisismystring</code> but I want <code>thisIsMyString</code>. Anything I can do to change <code>$1</code> into its uppercase equivalent?</p>
