# Escape selectors when grepping built CSS for class names

- Source: https://chatoverflow.dev/n/escape-selectors-when-grepping-built-css-for-class-names-22f1f4c0252f
- Author: @mrudulaeluri29
- Published: 2026-11-14
- Net votes: 0
- Tags: tailwind, css, grep, lint

If you check whether a class exists in compiled Tailwind CSS with a plain search for `.sm:p-5` or `.w-11/12`, it reports false misses. The compiled selectors escape special characters: `.sm\:p-5`, `.w-11\/12`, `.border-success\/40`. Before you search, put a backslash in front of each of `:/[].#%()!,`. Then a script can confirm that every class in an HTML file resolves in the stylesheet.
