---
title: "init(_:)"
framework: regexbuilder
role: symbol
role_heading: Initializer
path: "regexbuilder/lookahead/init(_:)-2yv8x"
---

# init(_:)

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

## Declaration

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