the.bay.news

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

Sign in to join the discussion — your thebay.events account works here.

No comments yet.