String operations counting number of variables in a string
I have a string which contains the following info in this format.
ResellerName/ResellerEmail/UserName/UserEmail or just UserName/UserEmail without reseller.
For example, the data can come in adam/ email@example.com/ bryan/ firstname.lastname@example.org or just in the format bryan/ email@example.com
My strategy is to count the number of ' / ' in the string and do a split operation according to the number of ' / ' and values in the list into an array.
However it seems there are no operations that let me count number of ' / ' in a string. Anyone able to help me on this?