Post the functions used for compiling / manipulating the input for extracting the regexp.