Regular expression in question:
$reg = '/[.]{1,}[\/\\]/';
if(preg_match($reg, $dir))...
I've tested this expression on http://regexpal.com and http://regex.larsolavtorvik.com/ it worked fine, but in my PHP script I'm getting this notification.
Message: preg_match() [function.preg-match]: Compilation failed: missing terminating ] for character class at offset 12
I've messed around with the number of '\', but it hasn't changed anything. Any suggestions on what might be going wrong?
I've tried to look for similar issues, but all I seem to run into is people who haven't added delimiters.