Ruby: how to tell if character is upper/lowercase May 15, 2023 by Tarik Use a regex pattern: [A-Z] or: /[[:upper:]]/.match(c)