about summary refs log tree commit diff
path: root/content/til/regex-unicode.md
blob: f2c7b94d23e6d8f9ae372b51ca36080bc500f1e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
title: "TIL How to match Unicode in RegEx"
date: 2022-02-13T16:32:53+07:00
translationKey: regex-unicode
tags: [regex, "regular expression", unicode]
---

Today I learned how to match [unicode in RegEx][regex-unicode].

For example, unicode-encoded letters (that is, any letters from any language)
can be matched with `\p{L}`.  View [an example on RegEx 101][example]

[regex-unicode]: https://www.regular-expressions.info/unicode.html
[example]: https://regex101.com/r/N602FX/1