Gregory P. Smith <g...@krypto.org> added the comment:
What do other APIs in widely used languages do with regex terminology? We appear to be the only popular language who anchors to the start of a string with an API named "match". libpcre C: uses "match" to mean what we call "search" - https://www.pcre.org/current/doc/html/pcre2_match.html Go: Uses "Match" to mean what we call "search" - https://pkg.go.dev/regexp#Match JavaScript: Uses "match" to mean what we call "search" - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match Java: Uses "matches" (I think meaning what we call fullmatch?) - https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html C++ RE2: explicit "FullMatch" and "PartialMatch" APIs - https://github.com/google/re2 Jave re2j: uses "matches" like Java regex.Pattern - https://github.com/google/re2j Ruby: Uses "match" as we do "search" - https://ruby-doc.org/core-2.4.0/Regexp.html Rust: Uses match as we do "search" - https://docs.rs/regex/latest/regex/ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42353> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com