Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
var parts = s.Split(',', '-', '_');
var parts = s.split( RegExp(r"[,-_]") );
var parts = s.split(/[-_,]/)
my @parts = split(/[,\-_]/, $s);
d, parts, t = ',-_', [], 0
for i, x in enumerate(s):
if x in d:
parts.append(s[t:i])
t = i + 1
parts.append(s[t:])
parts = s.split( Regexp.union(",", "-", "_") )
let parts: Vec<_> = s.split(&[',', '-', '_'][..]).collect();