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/ firstname.lastname@example.org/ bryan/ email@example.com or just in the format bryan/ firstname.lastname@example.org
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?