Ok, I can' t get my head around these. Want I want seems simple enough, basically I want to check that a string only includes...
0-9 a-z A-Z .
And that's it, basically a valid image file name. Anyone out there can show me the light... Cheers.
if(preg_match('/^[a-z0-9\\.\\-\\_]+$/', $string)) echo("This doesn't check the string's structure only what letters it contains");
Cheers, had to add in the A-Z but apart from that it worked a treat.