Changed regex parser so source expression is referenced from a file-scoped pointer.