convert title into capitalize using java regular expression
<p>I want a regular expression in java to convert title into capitalize while preserving method signature</p>

<p>An example is following</p>

<blockquote>
  <p>how to use dispatchEvent(AWTEvent event) method?</p>
</blockquote>

<p>changed to</p>

<blockquote>
  <p>How To Use dispatchEvent(AWTEvent event) Method?</p>
</blockquote>

<p>Here the part "dispatchEvent(AWTEvent event)" is not changed.</p>
