From 6768ddd8022672994eb10982d4c17656d40c2432 Mon Sep 17 00:00:00 2001 From: Osvaldo Dias dos Santos Date: Sat, 11 Mar 2023 22:00:53 +0100 Subject: [PATCH] Update "Unicode: flag "u" and class \p" article --- 9-regular-expressions/03-regexp-unicode/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/03-regexp-unicode/article.md b/9-regular-expressions/03-regexp-unicode/article.md index 712b6ecd0..1be163aff 100644 --- a/9-regular-expressions/03-regexp-unicode/article.md +++ b/9-regular-expressions/03-regexp-unicode/article.md @@ -142,7 +142,7 @@ Let's use it to look for prices in the format "currency, followed by a digit": ```js run let regexp = /\p{Sc}\d/gu; -let str = `Prices: $2, €1, ¥9`; +let str = `Prices: $2, €1, ¥9`; alert( str.match(regexp) ); // $2,€1,¥9 ```