RegexpPropertyValues
This small library lets you see which property values are supported by the regular expression engine of the Ruby version you are running and directly reads out their codepoint ranges from there.
That is, it determines all supported values for \p{value}
expressions and what they match.
Usage
Browse all property values (supported by any Ruby, ever)
require 'regexp_property_values'
PV = RegexpPropertyValues
PV.all
Browse property values supported by the Ruby you are running
PV.all_for_current_ruby
Inspect property values
PV['alpha'].supported_by_current_ruby?
PV['foobar'].supported_by_current_ruby?
PV['AHex'].matched_characters
PV['AHex'].matched_codepoints
PV['AHex'].matched_ranges
PV['foobar'].matched_ranges
If character_set
is installed, you can also do this:
PV['AHex'].character_set
Utility methods
PV.alias_hash
PV.update