Split Char.IsWhiteSpace

studio

#1

Hi everyone,

I have a issue:
My row in table have 2 number:
10
16

First, I want to split using code: vb.net
If Char.IsWhiteSpace(“my text in row”) and running OK.

And I thing I can using Split:
In For each:
item(2).toString.Split({“XXX”}, StringSplitOptions.None).
But in XXX
I do not know how to be able to perform same ’ If Char.IsWhiteSpace(“my text in row”) '!

Thank!


#2

HI @longnt23,
As i understand that the XXX is whitespace. Based on you have to split the string. right?

https://www.dotnetperls.com/split-vbnet

Regards
Balamurugan


Extract value from DataTable when condition is satisfied
#3

Hey @longnt23

Check it out this thread :slight_smile: of mine - Regex expression

Regards…!!
Aksh


#4

Thank @balupad14!


#5

Thank @aksh1yadav!


#6

I using:
item(2).ToString.Split.Where(Function(x) x <> String.Empty)