allow custom word boundaries

Our use case for this was matching the end of the nearest sentence. I considered adding a custom option (:break_on_sentences?) but it made more sense to just stuff a regexp value in word_boundary for maximum flexibility. If this it's explicitly set to false by the user, it'll still do the right thing (original behavior preserved). Let me know what you think, thanks!