I use a regex in a model and I use the Judge gem to perform the client side validation, because the judge based its client side validation on the models, it uses the user email regex in both Ruby and javascript.
The problem is that the regex is not javascript compatible, I guess. So I need to find a regex that is compatible with both Ruby and Javascript, for email validation. (But also for mobile, etc...)
Is there any tool, website or whatever to help me change all my regex?
/\A\s*(([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})[\s\/,;]*)+\Z/i