QRegExp rx("(\\\n|\\:|\\;)");
QString myString("login@mail.ru;pass\nlogin2@mail.ru;pass2\nlia@dll:pass3");
QStringList myStringList = myString.split(rx);
for (int index = 0; index < myStringList.length(); index++)
{
std::cout << "[" << index << "] " << myStringList.at(index).toStdString() << std::endl;
}
[0][1] login@mail.ru
[0][2] pass
[1][1] login2@mail.ru
[1][2] pass2
var str = "login@mail.ru;pass\nlogin2@mail.ru;pass2\nlia@dll:pass3"
var arr = str.split("\n").map(function(x){return x.split(/;|:/)})