Add `re.suffixmatch` as an end-anchored equivalent to `re.prefixmatch`
Discussions on Python.org
Add `re.suffixmatch` as an end-anchored equivalent to `re.prefixmatch`
With Python 3.15 and the addition of re.prefixmatch as a soft deprecation of re.match perhaps it is time to add an additional API to the re package - suffixmatch. This API would match a pattern as end-anchored similar to how re.prefixmatch matches a pattern as start-anchored.
0 comments
No comments yet.