The possibility of adding more exotic assertion tests

Create issue
Issue #22 new
Reino created an issue

I just started using your package, and it is great! It saves me a lot of time.

I was wondering if features could be added that test strings to be of a particular nature? Such as "is_a_path", (?<drive>\b[a-z]:)\ (?<folder>(?:[^\/:?"<>|\x00-\x1F]+\)) (?<file>[^\/:?"<>|\x00-\x1F]) "is_an_ip_address", ^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$ "is_an_email", \b[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,6}\b "is_blank"(from knitr), "is_a_zipcode", \b[0-9]{5}(?:-[0-9]{4})?\b "is_a_mac_address", \b[0-9A-F]{2}([-:]?)(?:[0-9A-F]{2}\1){4}[0-9A-F]{2}\b or even "is_a_complete_sentence" (haha j/k on the last one).

I know functions like these are spread throughout CRAN, but it seems to me they should be sequestered in yours.

Comments (0)

  1. Log in to comment