replacement

abstract fun <T> replacement(cx: Context, scope: Scriptable, matched: String, str: String, position: Int, captures: List<T>, namedCaptures: Any?): String