title: Match list of words all uppercase or all lowercase regex
body: <p>I'm using CodeMirror <a href="https://codemirror.net/demo/simplemode.html" rel="nofollow noreferrer">to write a simple mode</a> (not sure what kind of regex they use), and was wondering if I had a list of words that I wanted to match, like <code>aaa</code>, <code>bbb</code>, and <code>ccc</code> I could do it with <code>/aaa|bbb|ccc/</code>, and it would match the lowercase versions. But how would I get it to match only ALL lowercase and ALL uppercase? The equivalent of <code>/aaa|AAA|bbb|BBB|ccc|CCC/</code></p>