This regex pattern will match an empty string:
^$
And this will match (crudely) an email or an empty string:
(^$|^.*@.*\..*$)
More Related Contents:
- RegEx for Multi-Words Without Numbers and Any Special Characters
- How can I validate an email address using a regular expression?
- Regular expression to find URLs within a string
- Validating email addresses using jQuery and regex
- Is regular expression recognition of an email address hard?
- Replace single backslash in R
- Regex how to match an optional character
- Remove all special characters from a string in R?
- Create new column in dataframe based on partial string matching other column
- Regular expression to match last number in a string
- R/regex with stringi/ICU: why is a ‘+’ considered a non-[:punct:] character?
- Regex for comments in strings, strings in comments, etc
- Regular expression – starting and ending with a character string
- Select rows from data.frame ending with a specific character string in R
- Regex not operator
- Regular Expression Match to test for a valid year
- Find numbers after specific text in a string with RegEx
- What is a regex to match ONLY an empty string?
- Find the location of a character in string
- Is there an R function to escape a string for regex characters
- Regular Expression Vs. String Parsing
- How can I match a string with a regex in Bash?
- Regular expression to find two strings anywhere in input
- Remove square brackets from a string vector
- When is it best to use Regular Expressions over basic string splitting / substring’ing?
- Overlapping matches in R
- Replace string only once with php preg_replace
- Remove all characters before a period in a string
- How to validate email id in angularJs using ng-pattern
- How to measure similarity between strings?