Get startedGet started for free

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

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise