Javascript selecting part of a string and converting it to uppercase
<p>I have a string like this:</p>

<pre><code>A sampletext
b sampletext3
c exampletext    
A sampletext587
b sampletext5
b sampletextasdf
d sampletext4
b sometext
c sampletextrandom
</code></pre>

<p>How do I, in JS, convert all the text on the lines starting with <code>b</code> to upper case?</p>

<p>Thanks!</p>
