Skip to content

Instantly share code, notes, and snippets.

@eyeplum
Last active April 11, 2018 00:37
Show Gist options
  • Save eyeplum/8362eec3f372ff75d3e4761add898809 to your computer and use it in GitHub Desktop.
Save eyeplum/8362eec3f372ff75d3e4761add898809 to your computer and use it in GitHub Desktop.
Regex for capturing Unihan database properties
# 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