@guyjantic 🥳 Yay! You’re most welcome.
rastrau@swiss.social
@rastrau@swiss.social
Posts
-
Is anyone good with #Rstats and #regex ? -
Is anyone good with #Rstats and #regex ?@guyjantic Since the regex seems to swallow the first digit, i suspect “.” in the first group is too generous? Maybe \D (non-digit) would be better? But I’m not a regexpert (alas).
-
Is anyone good with #Rstats and #regex ?@guyjantic I don’t know if that’s an option, but stringr::str_extract() could be interesting to achieve this (if you don’t mind the dependency)? https://stringr.tidyverse.org/reference/str_extract.html #rstats