Split Function Throwing error

Hi Community,

i am facing issue with the split.

Ex : Add Teo-Chin

now i try to split it throwing error. can you please help me on the split of the name after Add.

**


**

HI,

How about using regex.Split

System.Text.RegularExpressions.Regex.Split(test,"ADD")(1)

Or

The following will also work.

System.Text.RegularExpressions.Regex.Match(test,"(?<=ADD).+").value

Regards,

Hi!

You’re using the wrong syntax, try this :slight_smile:

test.Split("ADD")(1)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.