I have this English and Arabic
regex in php , it works fine with php
But its not working with this library Formvalidation.io
I need to make it work and convert into JS regex to use in formvalidation regex.
Demo Regex 101
The Arabic regex is:
?-?is a subset of this Arabic range, so I think you can remove them from the pattern.
So, in JS it will be
See regex demo