Utilizing a regular expression in my model and relying on the Judge gem for client side validation has proven to be beneficial. The Judge gem leverages the models for its client side validation, using the user email regex in both Ruby and javascript.
The issue arises when the regex is incompatible with javascript. I am now seeking a regex that works seamlessly in both Ruby and Javascript for email validation (and potentially mobile validation as well).
Are there any resources available, such as tools or websites, to assist me in updating all of my regex patterns?
/\A\s*(([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})[\s\/,;]*)+\Z/i