I am working on a vb.net utility and have run into a need to find all the distinct strings inside a string.
So basically I will have a string that will look like this.
1.875{0};10;0.25|1.875;9;0.25|{2}1.875;1.875;0.25|14.125;{1}1.875;0.25|{0}14.125;16.125{1};0.25|1.875;{0}16.125;0.25|1.875;9;0.25{2}|1.875;8;0.25
So you can see I have these chars inside the string {0}, {1}, {2}
There are however multiples of each "placeholder" so to speak.
So i need help writing a function that will take string string above and return a count of 3 in this example, because there are 3 distinct placeholders in the source string. It would kind of mimick the distinct command in sql.
I'm sure this uses some kind of regex but I can't wrap my head around it to retrieve only the distinct ones. Not all the multiples.
Any help is appreciated. Thanks in Advance.