Creating regexes

Report a typo

Select all correct ways to create a regex instance in Kotlin:

a)

val regex = Regex("...")

b)

val regex = NewRegex("...")

c)

val regex = "...".toRegex()

d)

val string = "..."
val regex = string.toRegex()

e)

val regex = "...".createRegex()
Select one or more options from the list
___

Create a free account to access the full topic