Match the strained three-membered rings and nothing bigger. Daylight SMARTS would write [r3] for this, but openchemlib does not implement the ring-size…
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.