I'm new in PHP and I'm trying to accommodate php regular expression
from w3schools this regular expression
"/([\w\-]+\@[\w\-]+\.[\w\-]+)/"
represents the e-mail regular expression, but I'm wondering what this class definition means "[\w\-]"
, \w
any word character but what about "\-"
?
(Edited)