RegExp and/or methods

Two new "and" and "or" methods on RegExp objects that concats regex's into and/or sequences

/\w/.and(/\d/, /\s/).or(/\S/)

Becomes the final RegExp

/(?=(?=\w)(?=\d)(?=\s))|(\S)/

A better example of this would be if the inline RegExp expressions where distinct variables there where used also used else where, that you could import and compose into another RegExp.

This is interesting. I'm curious what the polyfill would look like.

Some related content: