mvelasquez10 Posted February 1, 2016 Share Posted February 1, 2016 HI, I'm trying to create a custom field and validate it before the customer adds something to their shopping cart. I'm using the following regular expression: Example: ^([a-z0-9][-a-z0-9_\+\.]*[a-z0-9])@([a-z0-9][-a-z0-9\.]*[a-z0-9]\.(me))$ When I go to http://regexr.com/ and try it live, it works perfectly, but when I add it and try it on my site I get a value not matched error. Any ideas. Thanks Mario 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 2, 2016 Share Posted February 2, 2016 http://docs.whmcs.com/Custom_Fields#Regular_Expression_Validation try adding a / at the start and end of your expression. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.