in reply to File extension match
Instead of:
$extensions="123,456";You might want to try:
$extensions = "(?:123|456)";Note that the ?: in the beginning of the parens makes this a non-capturing match.
PS: For more information about regular expressions, see perlre
|
|---|