Use `regex.test` when you only care if some string matches and don't need to save match groups and other internal state.