hedhyw / rex

Flexible regular expressions constructor for Golang.
MIT License
194 stars 5 forks source link

Support unicode character class #20

Closed hedhyw closed 2 years ago

hedhyw commented 2 years ago

\p{Greek}

Helper: Chars.Unicode(*unicode.RangeTable)

Find it in unicode.Categories or unicode.Scripts and specify the name as \p{Name}. If RangeTable is not found, write nothing.

Docs:

Unicode character classes are those in unicode.Categories and unicode.Scripts.