Matching a Unicode “name” with a JavaScript Regular Expression

后端 未结 2 1256
Happy的楠姐
Happy的楠姐 2020-12-09 23:55

In JavaScript we can match individual Unicode codepoints or codepoint ranges by using the Unicode escape sequences, e.g.:

\"A\".match(/\\u0041/) // => [\"         


        
2条回答
提交回复
热议问题