Last active
August 29, 2015 14:09
-
-
Save tonglu/d32ec8800d4487895888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a|b|c - means contains the strings "a" or "b" or "c" | |
^(a|b|c)$ - means IS the string 'a' or 'b' or 'c' same as: %in% c('a','b','c') | |
^(a|b|c) - means begins with 'a' or 'b' or 'c' | |
(a|b|c)$ - means ends with 'a' or 'b' or 'c' | |
^[a-zA-Z0-9]*$ - means IS the string contains only a-z, A-Z or 0-9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment