Do we need to copy Python API here? This API is:
- inconsistent (flatcase
fullmatch
) - unnecessary abbreviated (
sub
- substitute - this one is also inconsistent withstring.replace()
which purpose is the same) - far away from SotA implementation.
I propose:
- Dropping Python names and picking self-explanatory and consistent ones. Support for Python API could be added later via extensions and
re
module. This way we avoid same names with changes in behavior - Considering implementations in other system level langs like Rust / Zig to prioritize performance