[Vuejs]-Vee-validate No such validator 'required' exists. with regex

0👍

Just figured out that I need to escape \ in js.

regex: /^[\\+]?[(]?[0-9]{3}[)]?[-\s\\.]?[0-9]{3}[-\s\\.]?[0-9]{4,6}$/im

Leave a comment