CommencerCommencer gratuitement

Can you nest capturing groups?

What is the result of the following function call?

str_match(
  "Mike: 6 logins",
  pattern = "(\\w+: (\\d))"
)

Cet exercice fait partie du cours

Intermediate Regular Expressions in R

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice