Matching a Unicode “name” with a JavaScript Regular Expression

后端 未结 2 1250
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条回答
  •  萌比男神i
    2020-12-10 00:42

    I am using for defining unicode of a symbols this site http://www.fileformat.info.

    Unicode Blocks (Basic Latin, .+, Cyrillic, .+, Arabic and other): http://www.fileformat.info/info/unicode/block/index.htm

    Unicode Character Categories (this does not work in JS): http://www.fileformat.info/info/unicode/category/index.htm

    Letters (A-я): http://www.fileformat.info/info/unicode/char/a.htm

    Fonts (which chars are supported in each font): http://www.fileformat.info/info/unicode/font/index.htm

    Index for all above http://www.fileformat.info/info/unicode/index.htm

提交回复
热议问题