in reply to BerkeleyDB & Regex

tie the DB file to a hash and then just do something like:
@keys_i_want = grep /$re/, keys %hash_tied_to_db;