Regex: Easy way to match entire input?


#1

Does `Regex` provide an easy way to match the entire input, i.e. the equivalent of Java's `matcher.matches()` followed by `matcher.group(x)` ? I can do `Regex("\A...\z")`, but it would be nice to have a simpler solution to this common problem (e.g. `Regex::matchFully`, or perhaps better `Regex::match` and rename `Regex::match` to `Regex::matchFirst`).


#2

This is https://youtrack.jetbrains.com/issue/KT-8074