IsPartialMatch()
TRUE only when pcStr is a strict PREFIX of something that would match entirely -- on the way there, not there yet.
aussi écrite: IsPartial · MatchPartial · PartialMatch
Exemples de base (2)
o1 = new stzRegex("^https?://[\w-]+(\.[\w-]+)*\.\w{2,}$")
? o1.PartialMatch("http")
? o1.FindPartialMatch("http")
? @@( o1.FindPartialMatchZZ("http") ) + NL
? @@NL( o1.PartialMatchInfo("http") )1 1 [ 1, 4 ] [ [ "matchtype", "partial" ], [ "matched", "http" ], [ "section", [ 1, 4 ] ] ]
exécuté le 2026-10-02 04:23 dans la bibliothèque au commit 0e72e2e2c ; tiré de 25_findind_partial_matches.ring(s'ouvre dans un nouvel onglet)
o1 = new stzRegex(pat(:url))
cMyUrl = "https://example"
? o1.MatchPartial(cMyUrl)
? o1.FindPartialMatch(cMyUrl)
? @@( o1.FindPartialMatchZZ(cMyUrl) ) + NL
? @@NL( o1.PartialMatchInfo("https://example") )1 1 [ 1, 15 ] [ [ "matchtype", "partial" ], [ "matched", "https://example" ], [ "section", [ 1, 15 ] ] ]
exécuté le 2026-10-02 04:23 dans la bibliothèque au commit 0e72e2e2c ; tiré de 26_matchpartial.ring(s'ouvre dans un nouvel onglet)
Les extensions de cette méthode
Chaque extension, et si elle existe pour cette méthode ; une extension qui existe se compose avec les autres (FindSTCS).
Chaque exemple est un fichier de test de la bibliothèque, exécuté dans la bibliothèque pour cette page ; seuls ceux dont la sortie a tenu toutes les promesses écrites par leur fichier sont montrés. Les explications, les titres et le code sont ceux de la bibliothèque, en anglais.
Voir aussi
- La classe stzRegex
- La référence du domaine : Recherche de motifs
- Les autres méthodes de ces exemples : stzRegex.FindPartialMatch · stzRegex.PartialMatchInfo

