Introduction

This package provides a simple way to create Regex in a fluent way.

Here is a quick example:

Regex::build()
  ->startOfLine()
  ->group(fn (Fluent $fluent) => $fluent->find('http')->or('https'))
  ->then('://')
  ->ignoreCase()

// ^(http|https)\:\/\//i

You can also check if your string is valid to pattern:

Regex::for('https://100commitow.pl/')->find('100commitow')->check();

// True

🏅 There are badges

GitHub last commit
GitHub Actions Workflow Status
GitHub repo size
Packagist Version

Fluent Regex
rudashi · © 2024 All rights reserved