PCRE and GRegex
PCRE and GRegex
Posted Nov 3, 2022 16:01 UTC (Thu) by swilmet (subscriber, #98424)Parent article: Python support for regular expressions
Great article and a good summary of the statu quo of Python's regex support.
Searching for PCRE, GLib or GRegex gave no result on this page, so I would like to mention it.
PCRE (Perl Compatible Regular Expressions) is a widely-used library. GLib (part of the GTK and GNOME project) has the GRegex API which is or should be entirely usable from Python, and uses PCRE (GRegex has been ported to PCRE 2 recently). It is usable from Python thanks to GObject Introspection automatic language bindings (with PyGObject).
So GRegex is another alternative for Python developers.