Can you nest capturing groups?
What is the result of the following function call?
str_match(
"Mike: 6 logins",
pattern = "(\\w+: (\\d))"
)
This exercise is part of the course
Intermediate Regular Expressions in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
