Hi, I'm writing a script that happens to create external files on a unix machine. I'm doing the error handeling.. but I can't seem to test for charicters that would cause problems with my script and unix file systems. Mostly I can't seem to test for the occrence of the backslash.
Can some one help me with a bit of code where I can have a person only enter letters, numbers, dots, and spaces ?? No \ ' ; , !@#$%&*() etc
the back slash is really causing me problems.
I tryed to detect it with ereg and preg
/\/ ??? or /(\)/ but it gives me errors. I'm sure this is because I'm a dumby. Can anyone help?