[eluser]Unknown[/eluser]
Took a while to figure this one out. Seems most of us missed the obvious error...the last "-" is not escaped.
Adding the \. and | as I've seen other suggest may work for you, but the regex was supposed to be:
Code:
if ( ! preg_match("/^[a-z0-9:_\/\-\.|]+$/i", $str))