I'm trying to return only the first letters before the first number in as string. I tried several iterations of Regex and gave up on that.
I want to do something like:
I want to do something like:
VB.NET:
Dim source as String = "CP1,CP3-CP5,CP8"
Dim rc As String = Left(source, "[0-9]"))
[\CODE]
In this instance I just want to return "CP".
Last edited: