title: How can I convert from underscores to camel case with a regex?
body: <p>How can I convert names with underscores into camel case names as follows using a <strong>single</strong> Java/Perl regular expression search and replace?</p>
  
  <pre><code>underscore_variable_name -&gt; underscoreVariableName
  UNDERSCORE_VARIABLE_NAME -&gt; underscoreVariableName
  _LEADING_UNDERSCORE -&gt; leadingUnderscore
  </code></pre>
  
  <p>The reason I ask for a single regular expressions is that I want to do this using Eclipse or Notepad++ search and replace.</p>