https://github.com/synacktiv/php_filter_chain_generator

used when full url included and we want to skip some ending part of the input to pass the validation part

if (!preg_match('/^(**.*(enrollment|academic|financial|system)\.php)$/',** $report)) {

die("<h2>Access denied. Invalid file 🚫</h2>");

}