---
title: "init(_:)"
framework: regexbuilder
role: symbol
role_heading: Initializer
path: "regexbuilder/negativelookahead/init(_:)-4fh1d"
---

# init(_:)

Creates a negative lookahead from the regex generated by the given builder closure.

## Declaration

```swift
init<R>(@RegexComponentBuilder _ component: () -> R) where Output == R.RegexOutput, R : RegexComponent
```
