The following regular expressions should work


if ( string.matches("[,;]*") ){
//skip
}



This will also skip empty lines as well, so change the '*' to a '+' if you do not want to skip...