re.compile(
r'(?P<cp1>[0-9A-Fa-f]{4,5})(?:\.\.(?P<cp2>[0-9A-Fa-f]{4,5}))?'
)
But on the Unicode spec files, there are some entries like
“100000..10FFFD ; XX # Co [65534] <private-use-100000>..<private-use-10FFFD>”
re.compile(
r'(?P<cp1>[0-9A-Fa-f]{4,5})(?:\.\.(?P<cp2>[0-9A-Fa-f]{4,5}))?'
)
But on the Unicode spec files, there are some entries like
“100000..10FFFD ; XX # Co [65534] <private-use-100000>..<private-use-10FFFD>”