kotlin-stdlib / kotlin.js / RegExp / <init> <init> JS 1.1 RegExp ( pattern : String , flags : String ? = definedExternally ) Exposes the JavaScript RegExp object to Kotlin.