The ! operator negates a primitive. Match every molecule that holds an atom which is not carbon — remembering that SMARTS never sees the implicit hydrogens.
Convert between chemical structures and SMILES in both directions, search a list of structures by substructure or SMARTS, and learn the notation step by step. Everything runs in your browser — no structure you open ever leaves your machine — so the tool needs JavaScript.