Ignore Alphanumeric words and Capitalize First letter of other words in string using C# and VB.Net

Last Reply one year ago By pandeyism

Posted one year ago

how to capitalize first letter of each word of a string but not the volume messurements 

Dim s As String = "Petrol 10lt  Iv Set  inj.panadol 10mg"
Dim s2 As String = StrConv(s, VbStrConv.ProperCase)

the result is " Petrol 10Lt  Iv Set  Inj.Panadol 10Mg "

expected result is " Petrol 10lt  IV Set  Inj.Panadol 10mg "

This question does not have replies that have been liked.