I have this PHP function to compare a username $value
with a characters list:
strlen($value) == count(array_intersect(array_map("strtoupper", str_split($value)), str_split("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-")))
I need to obtain something similar using Jquery. I have problems with array_intersect()
at the moment, I can't find any similar function.
Thanks for any answer.