~ , ; [ ] ( ) .
And removes more that two trailing periods
function(string $st)
{
$file = mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $st);
// Removes any run of periods (thanks falstro!)
$file = mb_ereg_replace("([\.]{2,})", '', $file);
return $file;
}
Strip special characters except the below: BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way