in reply to BerkeleyDB & Regex
You could wrap RegexpHash around DB_file. It wouldn't be quick though.