>_ IzzyLab

Topic breakdown

Extracting substrings by a pattern is helped by grep -o (prints only matches) with extended regex -E. The key to CamelCase is the identifier's structure: lowercase letters, then mandatorily one uppercase somewhere in the middle (that's exactly what distinguishes such an identifier from a word of only lowercase), and after that letters of both cases. This is assembled from the character classes [a-z], [A-Z], [a-zA-Z] and the quantifiers +, * and "exactly one" — it's important that the uppercase in the middle be mandatory.

What's checked

  1. CamelCase words extracted
  2. all CamelCase found
  3. no extra words included

What it looks like