1. JS multi-delimiter split string
var username = "Zhao,li;wang, Liu";
var arr = str.split (/; |;|,|,|,/); The parentheses can be used to write multi-split symbols, both in English and Chinese, and note that the "|" Between each separator Separated, if it is a special split symbol, such as a dot, plus sign, must be denoted with an escape character such as Str.split (".") should be written as str.split ([.]);
2, Java Multi-delimiter split string
string[] name = Str.split ("; |;|,|,");
3, the JSTL tag has a parameter specifically configured for direct use of separators
<c:fortokens items= "${reslist.metamap[' keywords ']}" delims= ";;,," var= "Singlekeyword" >
<a href= "Javascript:searchbycase (' ${singlekeyword} ', ')" Title= "${singlekeyword}" >${singlekeyword}</a >
</c:forTokens>
From: http://blog.sina.com.cn/s/blog_67b9ad8d01019g1h.html
JS,JAVA,JSTL multi-delimiter split string