That's a good idea, but it could be improved a bit, since right now it doesn't work if you use spaces like:
#one , 000 , #two
I figured, we could as well replace any occurences of a channel specified without its prefix #, since that would give an error to join. This will catch the 0's as well, all in one.
The good thing is that it does give support for channel keys:
var %a, %b = $regsub($2-,/(?<=^|\x2C)\s?[^#]+/g,,%a)
On the test string: bla #one test, #two , 00 ,test #three four
it gave: #one test,#two ,#three four
I'm sure the regex can be improved, though I gotta go, going to the movies :tongue:
Greets