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

# init(_:)

Creates a lookahead from the given regex component.

## Declaration

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