Conditional Grouping Wizard

Use this powerful tool to group your regular expressions like a boss!

With Conditional Grouping, you can match patterns that are conditional on the previous match!

Perfect for matching patterns that only exist under certain circumstances!

See how it works with quantifiers

Example Patterns

(?<pattern1>)(?<pattern2>){n}

This pattern groups pattern1 and pattern2 n times!

(?<pattern1>)(?<pattern2>)?

This pattern groups pattern1 and pattern2 optionally!