regex

fun regex(pattern: Regex): String

Attempts to match pattern at the current position in the input, and returns the character sequence that matches, if any. Fails if the pattern could not be matched at this position in the inut.