I expected str_detect
(v1.0.0) could match anything with the pattern ^.*
since the *
should match 0 or more times. However, str_detect(string = "", pattern = "^.*")
returns FALSE
.
Why doesn't it return TRUE
, and is there an alternative pattern that would always return TRUE
no matter the string (but still using str_detect
)?