All,
Is there an easy way where I can split a string and actually get the delimiter as part of the array? For example:
Parts would then yield:
parts(0) = "Charges"
parts(1) = "+"
parts(2) = "Allowances"
parts(3) = "-"
parts(4) = "Bad Debt"
* Sine scientia ars nihil est
* Respondeat superior
Is there an easy way where I can split a string and actually get the delimiter as part of the array? For example:
Code:
Dim myString as String = "Charges + Allowances - Bad Debt"
Dim parts as String() = myString.Split("/*-+".ToCharArray)
Parts would then yield:
parts(0) = "Charges"
parts(1) = "+"
parts(2) = "Allowances"
parts(3) = "-"
parts(4) = "Bad Debt"
* Sine scientia ars nihil est
* Respondeat superior