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

```ts
const BEM_MODIFIER: Regex<"\\.(?<base>[\\w-]+)--(?<mod>[\\w-]+)", {
  flags: "gu";
  names: {
     base: string;
     mod: string;
  };
}>;
```

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

BEM Modifier Pattern
Matches BEM double dash modifier syntax: `.block--modifier`
Used for identifying modifier conventions and extracting modifier names.

## Example

```ts
BEM_MODIFIER.exec(".button--primary")?.groups // { base: "button", mod: "primary" }
```
