I have added an upgraded, drop-in replacement to the user contributions in trapexit.org. It allows for compilation of regular expressions. They can either be used directly in the functions in the module, as with regexp:parse, or the DFA built from the regexps can be returned. Read the documentation. Robert