add \<word\> support to regcomp. prompted by renewed interest from jsg
because such support is reportedly common and in somewhat wide use.
undocumented for now because we don't endorse this.
ok jsg millert