Attached functions to prototype instead of instance of object to save
memory when multiple RegExpBuilders are created. This means that the
functions are created once on the prototype, instead of created on every
new instance.