Skip to content

Instantly share code, notes, and snippets.

@eyeplum
Last active April 11, 2018 00:37
Show Gist options
  • Select an option

  • Save eyeplum/8362eec3f372ff75d3e4761add898809 to your computer and use it in GitHub Desktop.

Select an option

Save eyeplum/8362eec3f372ff75d3e4761add898809 to your computer and use it in GitHub Desktop.

Revisions

  1. eyeplum revised this gist Apr 11, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions unihan_data_properties.regex
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    # See: https://regex101.com/r/pIx6E8/9
    # See: https://regex101.com/r/pIx6E8/10

    (?xm)^ # every line
    (U\+[[:xdigit:]]{4,6}) # [1]codepoint
    U\+([[:xdigit:]]{4,6}) # [1]codepoint
    \t # separator
    (k[a-zA-Z0-9_]+) # [2]field key
    \t # separator
  2. eyeplum revised this gist Apr 10, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions unihan_data_properties.regex
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # See: https://regex101.com/r/pIx6E8/8
    (?xm)^ # every line
    # See: https://regex101.com/r/pIx6E8/9
    (?xm)^ # every line
    (U\+[[:xdigit:]]{4,6}) # [1]codepoint
    [[:blank:]]* # separator
    \t # separator
    (k[a-zA-Z0-9_]+) # [2]field key
    [[:blank:]]* # separator
    \t # separator
    (.*) # [3]field value
  3. eyeplum revised this gist Apr 10, 2018. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions unihan_data_properties.regex
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,7 @@
    # https://regex101.com/r/pIx6E8/8

    # See: https://regex101.com/r/pIx6E8/8
    (?xm)^ # every line
    (U\+[[:xdigit:]]{4,6}) # [1]codepoint
    [[:blank:]]* # separator
    (k[a-zA-Z0-9_]+) # [2]field key
    [[:blank:]]* # separator
    (.*)
    (.*) # [3]field value
  4. eyeplum revised this gist Apr 10, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion unihan_data_properties.regex
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # See: https://regex101.com/r/pIx6E8/7
    # https://regex101.com/r/pIx6E8/8

    (?xm)^ # every line
    (U\+[[:xdigit:]]{4,6}) # [1]codepoint
  5. eyeplum revised this gist Apr 10, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions unihan_data_properties.regex
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # See: https://regex101.com/r/pIx6E8/6
    # See: https://regex101.com/r/pIx6E8/7

    (?xm)^ # every line
    (?xm)^ # every line
    (U\+[[:xdigit:]]{4,6}) # [1]codepoint
    [[:blank:]]* # separator
    ([[:alpha:]]+) # [2]field key
    (k[a-zA-Z0-9_]+) # [2]field key
    [[:blank:]]* # separator
    (.*) # [3]field value
    (.*)
  6. eyeplum renamed this gist Apr 10, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. eyeplum renamed this gist Apr 10, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt → regex.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # See: https://regex101.com/r/pIx6E8/6

    (?xm)^ # every line
    (U\+[[:xdigit:]]{4,6}) # [1]codepoint
    [[:blank:]]* # separator
  8. eyeplum created this gist Apr 10, 2018.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    (?xm)^ # every line
    (U\+[[:xdigit:]]{4,6}) # [1]codepoint
    [[:blank:]]* # separator
    ([[:alpha:]]+) # [2]field key
    [[:blank:]]* # separator
    (.*) # [3]field value