use a regex pattern
use Regex to test a match
use the path to check the ext name value