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

Regex.new

new($pattern, $flags)

Description

Manually create a Regex object, instead of using regex string r'...'.

$pattern = new Regex('(\\w+)', 'i');