Build the list parts consisting of substrings of the input string s, separated by any of the characters ',' (comma), '-' (dash), '_' (underscore).
let parts: Vec<_> = s.split(&[',', '-', '_'][..]).collect();
using System.Text.RegularExpressions;
var parts = Regex.Split(s, "[,_-]");
var parts = s.Split(',', '-', '_');
var parts = s.split( RegExp(r"[,-_]") );
import "regexp"
re := regexp.MustCompile("[,\\-_]") parts := re.Split(s, -1)
var parts = s.split(/[-_,]/)
uses sysutils;
parts := s.split([',','_','-']);
my @parts = split(/[,\-_]/, $s);
import re
parts = re.split('[,_\-]', s)
parts = s.split( Regexp.union(",", "-", "_") )
No security, no password. Other people might choose the same nickname.