I have this English and Arabic regex
in php , it works fine with php
But its not working with this library Formvalidation.io
~^[a-z0-9?-?-+,()/'sp{Arabic}]{1,}$~iu
I need to make it work and convert into JS regex to use in formvalidation regex.
Demo Regex 101
The Arabic regex is:
Actually,
?-?
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