It's a bit hard to not give the complete answer for something that involves so little code. The following will replace any alphanumeric character followed by a comma with the same character followed by a slash and so converts 'q,r,t' into 'q/r/t'.
I assume that the string you posted was just an example and so you'd substitute the variable name containing the real string to be converted as the string on which the replace is to be run.
The string.replace method can take a regular expression as the first parameter. A regular expression provides a pattern against which the parts of the string are matched with any match then being replaced by the value in the second parameter.
To specify a regular expression you surround it inside / /
\w in a regular expression means any letter or number
The g after the second / means repeat the replace for every match found.
The ( ) around part of the regular expression captures whatever it contains and allows it to be copies into the output - the first ( ) is referenced in the output string as $1 (if there were a second one it would be $2 and so on).
With your example string the replace call finds and replaces two occurrences of a letter followed by a comma with that same letter followed by a /
Helping others to solve their computer problem at http://www.felgall.com/
Last edited by felgall; 02-26-2013 at 09:19 PM..