How to uppercase the first character of each word using a regex in VB.NET?

前端 未结 9 1478
無奈伤痛
無奈伤痛 2020-12-06 19:19

Is it possible to uppercase the first character of each word using regex?

I\'m going to be using this in VB.net (SSIS)

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 19:23

    Use ProperCase function:

    Dim Str As String = "the quick brown fox jumps over the lazy dog"
    Dim NewStr As String = StrConv(Str, VbStrConv.ProperCase) 
    

              

提交回复
热议问题