I have this regex :
if(preg_match("@^\d{4}$@", basename($entry, ".php"))) {
--do something here--
}
that condition works only for 4 digits number. but I need to validate 4 digits and also 5 digits. how to make it work to validate 5 digits number too? thanks!