From d3ef0d544fb90a4ae2b2a55a2cdfd555d3d687e8 Mon Sep 17 00:00:00 2001 From: LuiGee3471 Date: Mon, 15 Jun 2020 11:15:53 +0900 Subject: [PATCH] Fixed Wikipedia link and list markdown --- 9-regular-expressions/03-regexp-unicode/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/9-regular-expressions/03-regexp-unicode/article.md b/9-regular-expressions/03-regexp-unicode/article.md index fb8fed47..defbe15a 100644 --- a/9-regular-expressions/03-regexp-unicode/article.md +++ b/9-regular-expressions/03-regexp-unicode/article.md @@ -93,7 +93,7 @@ Here's the main character categories and their subcategories: - control `Cc`, - format `Cf`, - not assigned `Cn`, - -- private use `Co`, + - private use `Co`, - surrogate `Cs`. @@ -127,7 +127,7 @@ alert("number: xAF".match(regexp)); // xAF Let's look for Chinese hieroglyphs. -There's a unicode property `Script` (a writing system), that may have a value: `Cyrillic`, `Greek`, `Arabic`, `Han` (Chinese) and so on, [here's the full list]("https://en.wikipedia.org/wiki/Script_(Unicode)"). +There's a unicode property `Script` (a writing system), that may have a value: `Cyrillic`, `Greek`, `Arabic`, `Han` (Chinese) and so on, [here's the full list](https://en.wikipedia.org/wiki/Script_(Unicode)). To look for characters in a given writing system we should use `pattern:Script=`, e.g. for Cyrillic letters: `pattern:\p{sc=Cyrillic}`, for Chinese hieroglyphs: `pattern:\p{sc=Han}`, and so on: