- or download this
if ($file =~ /^\d{8}(?:_\d+)*\.ilf$/i ||
$file =~ /^\d{8}(?:\s\d+)*\.sht$/i
) {
...
}
- or download this
vvvvvvvvv vvv vvv vvvv common
/^\d{8}(?:_ \d+)*\.ilf$/ix
/^\d{8}(?:\s\d+)*\.sht$/ix
^^ ^^^ not common
- or download this
(?:_ \d+)*\.ilf
/^\d{8} $/ix
(?:\s\d+)*\.sht
- or download this
if ($file =~ /^\d{8}(?:(?:_\d+)*\.ilf|(?:\s\d+)*\.sht)$/i) {
...
}