---
url: /reference/packages/regex/src/namespaces/CssdocLocalPatterns/variables/MODIFIER_CHAIN.md
---
# Variable: MODIFIER_CHAIN

```ts
const MODIFIER_CHAIN: Regex<"(?<chain>(?:\\.-[\\w-]+)+)", {
  flags: "u";
  names: {
     chain: string;
  };
}>;
```

Defined in: [packages/regex/src/tiers/cssdoc-local.ts:112](https://github.com/thedannywahl/cssdoc/blob/main/packages/regex/src/tiers/cssdoc-local.ts#L112)

Modifier Chain Pattern
Matches consecutive modifier classes in a selector.
Used to extract and validate modifier sequences.

Example: `.base.-active.-size-lg`

## Example

```ts
MODIFIER_CHAIN.exec(".-active.-size-lg")?.groups?.chain // ".-active.-size-lg"
```
