This challenge, suggested by /u/a-t-k, is to match all the valid chemical element short names (eg. H and Ag) of elements with an atomic number of 50 or less. This is golf; the aim is to create the shortest regular expression possible. You should match the chemical formulas, and nothing else.
To test a regular expression on the test cases below, type it into the text input. Each test case will be marked as passed or failed respectively - you are aiming to get as many test cases as you can to pass. Note that JavaScript must be enabled for this feature to work. The regex engine used is the JavaScript regex engine; it is similar to PCRE, but with a few differences.