rx-group-if

rx-group-if is a compiled Lisp function in `rx.el'.

(rx-group-if REGEXP GROUP)

Put shy groups around REGEXP if seemingly necessary when GROUP
is non-nil.