Regular Expression to allow @
I have a regular expression check in Magento (php) that allows letters,
digits and _-
here is the code
$validate = new Zend_Validate_Regex('/^[\w-][@-]*$/');
I am trying to get this to also allow the @ symbol, and as I probably find
out, this would need a full rewrite of the regex, which I am no good at,
can anyone help me find the correct Regexp
No comments:
Post a Comment