ईमेल रिकॉर्ड: Algorithms for Hidden Markov Models Restricted to Occurrences of Regular Expressions