php regex filename
- by Patrick
Hi, anyone can help me with a preg_match? I'd like to use php's preg_match to determine if an input is a valid filename or not (only the filename + file extension, not the full path). General rules:
1) filename = a-z, A-Z, 0-9
2) extension = 3 or 4 letters
Thank you!