A file searching algorithm implementing regular expression theory and filesystem databases