Methods now accept new RegExpBuilder objects instead of functions as a
it looks a bit cleaner in javascript.