How to split string by both space and new line
eg.
abc 123 pqr
efg ijk etc…
i want output as in list as
[abc,123,pqr,efg,ijk]
currently i am using asSplit(newstring1.tostring,“ ”)
but this gives me output as
[abc,123,pqr \n efg,ijk]
How to split string by both space and new line
eg.
abc 123 pqr
efg ijk etc…
i want output as in list as
[abc,123,pqr,efg,ijk]
currently i am using asSplit(newstring1.tostring,“ ”)
but this gives me output as
[abc,123,pqr \n efg,ijk]
@tejaswini.pratapwar
welcome to the forum
give try at:
YourStringVar.Split({vbCr, vbLf," "}, StringSplitOptions.RemoveEmptyEntries)
Just Replace the newlines (VBCRLF) with empty string to get rid of them, then split on space.
thank you @ppr for quick response.
perfect, once it is working close the topic by: