Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

Regex.flags

flags($flags)

Description

Add modifier flags to the regex pattern.

$pattern = r'Hello World'.flags('is');

'hello'.match($pattern);
//= ['Hello']