i want to check users’ input value when he input his name, if his input is a English name, the name only contains letters and must be divided with slash(/), example:
GeorgeBush, George Bush,GeorgeBush/, dsfsdf/ are wrong; George/Bush, fdfd/fdfd/sds are right.
i have find a regular expression like this:/^[a-zA-Z\u4E00-\u9FA5\/]{1,20}/. But it can’t check fsfd/ or /fdsf. please give me some suggestions. thanks!
i want to check users’ input value when he input his name, if his
Share
Not clear exactly what you want, maybe this: