What is the regular expression to match any email address in a string?
Answer options
A
True
B
False
Correct answer: True
Explanation
Quick AnswerThe correct answer is True because it directly addresses the core logic of Java Programming.
An email regex like [a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+ matches email addresses.