I have a string like this:
A sampletext
b sampletext3
c exampletext
A sampletext587
b sampletext5
b sampletextasdf
d sampletext4
b sometext
c sampletextrandom
How do I, in JS, convert all the text on the lines starting with b to upper case?
Thanks!
With regex
And assigning it to String Object
Would later use like