R bloggers

More string Hacking with Regex and Rebus

FavoriteLoadingAdd to favorites

For a begineer in R or any language,regular expression might seem like a daunting task . Rebus package in R gives a lowers the barrier for common regular expression tasks and is useful for a begineer or even for advanced users for most of the common regex skills in a more intuitive yet verbose way .Check out the package and try this exercises to test your knowledge .Load stringr/stringi as well for this set of exercise . I encourage you to do this andthis before working on this set .Answers are available here. If you obtained a different (correct) answer than those listed on the solutions page, please feel free to post your answer as a comment on that page. Exercise 1create two stringsSuppose you have a vectorex <- c(“stringer”,”stringi”,”rebus”,”redbus”) use rebus and find the strings starting with st .Hint…
Original Post: More string Hacking with Regex and Rebus