Added regex check for block devices