Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Object.isRegex

isRegex() -> boolean

Description

Returns true if the variable is a Regex.

$pattern = r'\w+'i

$pattern.isRegex()
//= true

See Also