<?php

return preg_replace ('/[^0-9a-z_\-\.]/i', '', $value);