regex

fun regex(pattern: String, input: Any, flags: String? = null): Expression

["regex", pattern, flags?, input] — true when pattern matches anywhere in input, like JS RegExp.test. Anchor the pattern (^, $) for a whole-string match.

Parameters

flags

JS regex flags; i, m and s are honoured.