title: Capitalize first letter in PHP using RegEx?
body: <p>I have data in a notepad file as following:</p>
  
  <pre><code>A   1-6
  A   1-7
  B   1-8
  B   1-9
  B   1-10
  c   1-11
  C   1-12
  D   1-13
  F   1-14
  F   1-15
  f   1-16
  </code></pre>
  
  <p>I want above data to be updated as below in the notepad file:</p>
  
  <pre><code>&lt;strong&gt;A&lt;/strong&gt;  1-6
  A   1-7
  &lt;strong&gt;B&lt;/strong&gt;  1-8
  B   1-9
  B   1-10
  &lt;strong&gt;c&lt;/strong&gt;  1-11
  C   1-12
  &lt;strong&gt;D&lt;/strong&gt;  1-13
  &lt;strong&gt;F&lt;/strong&gt;  1-14
  F   1-15
  f   1-16
  </code></pre>
  
  <p>Which means adding a <code>&lt;strong&gt;</code> tag or any other tag with first character alphabetically. The data in file is sorted alphabetically (A to Z).</p>
  
  <p>I want to achieve this in PHP using RegEx techniques, please help!</p>
  
  <p>Thanks.</p>