Storing RegularExpressions in final states of automatons