Below is the regex pattern literal in javascript for accepting the firstname, middlename and lastname from html input element. There is zero or one space in between.
var regpat= /^[\u0041-\u005A\u0061-\u007A\.\' \-]{2,15}\s?[\u0041-\u005A\u0061-\u007A\.\' \-]{2,15}\s?[\u0041-\u005A\u0061-\u007A\.\' \-]{2,15}$/;/
Inputs:
first name is
優子, last name is白石, in japanesefirst name is
瞿, middle name is秋, last name is白, in chinese
1) Is this regex pattern complete to accept names having English characters?
2) How can this regex literal be enhanced to accept Chinese/Korean/Japanese characters sitting in Unicode BMP(plane 0) characters?
Note: 17 planes in Unicode