Added regex and extension checking to recursive deletion

Signed-off-by: Tristen Allen <spyboticsguy@gmail.com>