In R I am running into a problem with string matching for strings with this string: DRB1*07:01
Both grepl and str_detect report FALSE if I query this string on itself.
Here is the exact code I used:
str_detect("DRB1*07:01","DRB1*07:01") #returns FALSE
grepl("DRB1*07:01","DRB1*07:01") #returns FALSE
Shouldn't it return TRUE? Ideally, I want to be able to search with DRB1*07 and find DRB1*07:01 as a match, but cannot do so until I can at least match DRB1*07:01 with itself.
Thank you for any help!