We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Because you do this: ids <- stringr::str_extract_all(string = aa, pattern = ";user=[[:alnum:]]+[[:punct:]]")
ids <- stringr::str_extract_all(string = aa, pattern = ";user=[[:alnum:]]+[[:punct:]]")
It will end the regex when it hits any punctuation. That does not work for ids with punctuation, like myself.
Instead do this because ids are 12 characters: ids <- stringr::str_extract_all(string = aa, pattern = ';user=.{12}')
ids <- stringr::str_extract_all(string = aa, pattern = ';user=.{12}')
And then to remove the user part: ids <- ids %>% unlist %>% gsub(";user=", "", .) %>% unique
ids <- ids %>% unlist %>% gsub(";user=", "", .) %>% unique
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Because you do this:
ids <- stringr::str_extract_all(string = aa, pattern = ";user=[[:alnum:]]+[[:punct:]]")
It will end the regex when it hits any punctuation. That does not work for ids with punctuation, like myself.
Instead do this because ids are 12 characters:
ids <- stringr::str_extract_all(string = aa, pattern = ';user=.{12}')
And then to remove the user part:
ids <- ids %>% unlist %>% gsub(";user=", "", .) %>% unique
The text was updated successfully, but these errors were encountered: