Last active
April 11, 2018 00:37
-
-
Save eyeplum/8362eec3f372ff75d3e4761add898809 to your computer and use it in GitHub Desktop.
Regex for capturing Unihan database properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See: https://regex101.com/r/pIx6E8/10 | |
(?xm)^ # every line | |
U\+([[:xdigit:]]{4,6}) # [1]codepoint | |
\t # separator | |
(k[a-zA-Z0-9_]+) # [2]field key | |
\t # separator | |
(.*) # [3]field value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment