val text
= "red 1 green 3 blue" println( text.split("red|green|blue").mkString(";") )
println( text.split("red|green|blue", -1).mkString(";") )
println( text.split("red|green|blue").filter(_.nonEmpty).mkString(";") )
}
b2JqZWN0IE1haW4gZXh0ZW5kcyBBcHAgewoJdmFsIHRleHQgPSAicmVkIDEgZ3JlZW4gMyBibHVlIgoJcHJpbnRsbiggdGV4dC5zcGxpdCgicmVkfGdyZWVufGJsdWUiKS5ta1N0cmluZygiOyIpICkKCXByaW50bG4oIHRleHQuc3BsaXQoInJlZHxncmVlbnxibHVlIiwgLTEpLm1rU3RyaW5nKCI7IikgKQoJcHJpbnRsbiggdGV4dC5zcGxpdCgicmVkfGdyZWVufGJsdWUiKS5maWx0ZXIoXy5ub25FbXB0eSkubWtTdHJpbmcoIjsiKSApCn0=