La bibliothèque se documente elle-même · Recherche de motifs
stzRegex
66 méthodes propres · 74 formes avec extensions, rangées sous leur méthode
la source: base/regex/stzRegex.ring(s'ouvre dans un nouvel onglet) · Toutes les classes · La référence du domaine : Recherche de motifs
Sous chaque méthode, ses extensions (Q CS XT Z ZZ IB W U) : en gras et cochée, elle existe ; barrée, elle n'existe pas. Les extensions et leur sens
Exemples : 3 viennent des tests de la bibliothèque ; 33 ont été composés à partir de la signature de chaque méthode et exécutés pour cette page, sur un objet neuf, par exemple o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+"). 30 méthodes n'en ont pas encore. Exemples exécutés le 2026-10-03 20:34 dans la bibliothèque au commit 0e72e2e2c.
Méthode
Explication, telle que la source la porte
init
init and pattern seetingaucune extension
SetPattern
init and pattern seetingaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
o1.SetPattern("an")
? o1.Content()
#--> ancomposé à partir de la signature, exécuté pour cette pageString
(sans commentaire dans la source : le nom se lit comme une phrase) stringdans la section general methodsaucune extension
Pattern
(sans commentaire dans la source : le nom se lit comme une phrase) patternaussi écrite: Contentdans la section general methodsaucune extension
Copy
(sans commentaire dans la source : le nom se lit comme une phrase) copydans la section general methodsaucune extension
MatchType
(sans commentaire dans la source : le nom se lit comme une phrase) match typeaussi écrite: MatchTypeAndOptionsdans la section general methodsQCSXTZZZIBWU
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchType()
#--> matchentirecontentcomposé à partir de la signature, exécuté pour cette pageMatchOptions
(sans commentaire dans la source : le nom se lit comme une phrase) match optionsdans la section general methodsaucune extension
HasMatch
(sans commentaire dans la source : le nom se lit comme une phrase) has matchdans la section matching methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasMatch()
#--> 0composé à partir de la signature, exécuté pour cette pageHasPartialMatch
Reads the recorded outcome of the LAST match, exactly as HasMatch() does. It used to re-run a fresh unanchored partial probe instead, so the two siblings could describe different matches.aucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasPartialMatch()
#--> 0composé à partir de la signature, exécuté pour cette pageLastMatchKind
The kind of the last match: 0 none, 1 complete, 2 partial.aucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.LastMatchKind()
#--> 0composé à partir de la signature, exécuté pour cette pageMatchLinesIn
Softanza scope-based pattern matching methods The scope methods SEARCH within a scope -- the scope sets the boundaries (what "." spans, where ^ and $ bind), the match type stays the unanchored search. MatchWord("pre[a-z]+") finds "preset" inside a longer sentence; that is the whole point of a word scope.aussi écrite: MatchLineaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchLinesIn("an")
#--> 0composé à partir de la signature, exécuté pour cette pageMatchFirstLineIn
(sans commentaire dans la source : le nom se lit comme une phrase) match first line inaussi écrite: MatchFirstLinedans la section matching methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchFirstLineIn("an")
#--> 0composé à partir de la signature, exécuté pour cette page(sans commentaire dans la source : le nom se lit comme une phrase) match words in 1 exemples exécutésaussi écrite: MatchWorddans la section matching methods
o1 = new stzRegex("pre\w+")
? o1.MatchWordsIn("prefix preprocess present compress") # matches pre* words
? o1.MatchWordsIn("compress")
#--> 1
#--> 0test de la bibliothèqueaucune extensionMatchFirstWordIn
(sans commentaire dans la source : le nom se lit comme une phrase) match first word inaussi écrite: MatchFirstWorddans la section matching methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchFirstWordIn("an")
#--> 0composé à partir de la signature, exécuté pour cette pageMatchSegmentsIn
(sans commentaire dans la source : le nom se lit comme une phrase) match segments inaussi écrite: MatchSegmentdans la section matching methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchSegmentsIn("an")
#--> 0composé à partir de la signature, exécuté pour cette pageMatchFirstSegmentIn
(sans commentaire dans la source : le nom se lit comme une phrase) match first segment inaussi écrite: MatchFirstSegmentdans la section matching methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchFirstSegmentIn("an")
#--> 0composé à partir de la signature, exécuté pour cette pageThis is what :MatchEntireContent has always said it does, and what the naming redesign settled on: match the complete pattern against the complete content. 4 exemples exécutésaussi écrite: Macth · IsMatched · MacthString · MatchStringQCSXTZZZIBWUMany
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.Match("an")
#--> 0composé à partir de la signature, exécuté pour cette pageMatchFirst
The SEARCH counterpart of Match(): is there a first occurrence of the pattern anywhere in the string? rx("[0-9]+").MatchFirst("abc123") is TRUE where .Match("abc123") is FALSE.aussi écrite: Occurs · MatchAnywhereaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchFirst("an")
#--> 0composé à partir de la signature, exécuté pour cette pageMatchAt
Searches for the next occurrence FROM nPos (1-based), which is what Matches() needs to walk a string. Not "must match starting exactly at nPos" -- that is MatchXT(s, nPos, :MatchEntireContent, ...).aucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchAt("an", 2)
#--> 0composé à partir de la signature, exécuté pour cette pageGetting all the matching values in a given string 1 exemples exécutésaussi écrite: Result · Harvest · Results · AllMatches · MatchedValues · MatchingValues · AllMatchingValues · MatchedSubStrings · MatchingSubStringsQCSXTZZZIBWU
NumberOfMatches
(sans commentaire dans la source : le nom se lit comme une phrase) number of matchesaussi écrite: CountMatches · HowManyMatches · CountMatchingValues · HowManyMatchingValues · NumberOfMatchingValuesdans la section matching methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.NumberOfMatches()
#--> 0composé à partir de la signature, exécuté pour cette pageNumberOfChars
(sans commentaire dans la source : le nom se lit comme une phrase) number of charsaussi écrite: CapturedLengthdans la section matching methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.NumberOfChars()
#--> 0composé à partir de la signature, exécuté pour cette pageFindMatches
(sans commentaire dans la source : le nom se lit comme une phrase) find matchesaussi écrite: FindValues · FindMatchingValues · FindMatchingSubStringsdans la section matching methodsQCSXTZZZIBWU
Same as MatchesZ: This used to print @@(FindMatches()) and return nothing, which made the four aliases below -- every one of them named ...AndTheirPositions -- answer NULL while dumping to the console. Nothing carried a position at all. 1 exemples exécutésaucune extension
Same as MatchesZ: This used to print @@(FindMatches()) and return nothing, which made the four aliases below -- every one of them named ...AndTheirPositions -- answer NULL while dumping to the console. Nothing carried a position at all. 1 exemples exécutésaucune extension
MatchingValuesAndTheirPositions
Same as MatchesZ: This used to print @@(FindMatches()) and return nothing, which made the four aliases below -- every one of them named ...AndTheirPositions -- answer NULL while dumping to the console. Nothing carried a position at all.aucune extension
Same as MatchesZ: This used to print @@(FindMatches()) and return nothing, which made the four aliases below -- every one of them named ...AndTheirPositions -- answer NULL while dumping to the console. Nothing carried a position at all. 1 exemples exécutésaucune extension
ValuesZ
Same as MatchesZ: This used to print @@(FindMatches()) and return nothing, which made the four aliases below -- every one of them named ...AndTheirPositions -- answer NULL while dumping to the console. Nothing carried a position at all.QCSXTZZZIBWU
FindValuesAsSections
(sans commentaire dans la source : le nom se lit comme une phrase) find values as sectionsdans la section matching methodsaucune extension
FindMatchesAsSections
(sans commentaire dans la source : le nom se lit comme une phrase) find matches as sectionsdans la section matching methodsaucune extension
FindMatchingValuesAsSection
(sans commentaire dans la source : le nom se lit comme une phrase) find matching values as sectiondans la section matching methodsaucune extension
FindMatchingSubStringsAsSections
(sans commentaire dans la source : le nom se lit comme une phrase) find matching sub strings as sectionsdans la section matching methodsaucune extension
ValuesAsSections
Same as MatchesZZ: Getting all the matching values in a given string (answers [start, end] sections)aucune extension
MatchesAsSections
Same as MatchesZZ: Getting all the matching values in a given string (answers [start, end] sections)aucune extension
MatchingValuesAsSection
Same as MatchesZZ: Getting all the matching values in a given string (answers [start, end] sections)aucune extension
MatchingSubStringsAsSections
Same as MatchesZZ: Getting all the matching values in a given string (answers [start, end] sections)aucune extension
HasGroups
(sans commentaire dans la source : le nom se lit comme une phrase) has groupsdans la section group capture-related methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasGroups()
#--> 0composé à partir de la signature, exécuté pour cette page(sans commentaire dans la source : le nom se lit comme une phrase) has names 1 exemples exécutésdans la section group capture-related methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasNames()
#--> 0composé à partir de la signature, exécuté pour cette page(sans commentaire dans la source : le nom se lit comme une phrase) capture groups 1 exemples exécutésaussi écrite: Capture · Captures · CaptureValues · CapturedValues · CaptureSubStrings · CaptureMatchingSubStringsdans la section group capture-related methodsQCSXTZZZIBWU
HasValues
(sans commentaire dans la source : le nom se lit comme une phrase) has valuesaussi écrite: HasMatches · HasMatchedValuesdans la section group capture-related methodsaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasValues()
#--> 0composé à partir de la signature, exécuté pour cette pageNamed Recursive Match 1 exemples exécutésaussi écrite: Names · NestedNames · RecursiveNames · CaptureGroupNames · NestedGroupsNames · NestedNamedGroups · RecursiveGroupsNames · RecursiveNamedGroupsdans la section group capture-related methodsaucune extension
CapturedGroups
(sans commentaire dans la source : le nom se lit comme une phrase) captured groupsaussi écrite: Groupsdans la section group capture-related methodsaucune extension
CaptureByName
(sans commentaire dans la source : le nom se lit comme une phrase) capture by nameaussi écrite: GroupByName · NamedCapturedans la section group capture-related methodsaucune extension
NamedGroups
(sans commentaire dans la source : le nom se lit comme une phrase) named groupsaussi écrite: NamedCaptureGroupsdans la section group capture-related methodsaucune extension
FindCapture
(sans commentaire dans la source : le nom se lit comme une phrase) find captureaussi écrite: FindCaptures · FindCaptureValues · FindCapturedValues · FindCaptureSubStrings · FindCaptureMatchingSubStringsdans la section group capture-related methodsQCSXTZZZIBWU
CaptureCount
pattern information and validationaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.CaptureCount()
#--> 0composé à partir de la signature, exécuté pour cette pageIsValid
pattern information and validationaussi écrite: IsValidPatternaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.IsValid()
#--> 1composé à partir de la signature, exécuté pour cette pageLastError
pattern information and validationaucune extension
PatternErrorOffset
pattern information and validationaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.PatternErrorOffset()
#--> -1composé à partir de la signature, exécuté pour cette pageTRUE only when pcStr is a strict PREFIX of something that would match entirely -- on the way there, not there yet. 2 exemples exécutésaussi écrite: IsPartial · MatchPartial · PartialMatchQCSXTZZZIBWU
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.IsPartialMatch("an")
#--> 1composé à partir de la signature, exécuté pour cette pageIsCompleteMatch
(sans commentaire dans la source : le nom se lit comme une phrase) is complete matchaussi écrite: IsCompletedans la section partial matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.IsCompleteMatch("an")
#--> 0composé à partir de la signature, exécuté pour cette pageThis is the method the two partial match types exist for. Until the types were wired up it just called an entire-content match, so it rejected every incomplete input -- the exact case it is named after. 2 exemples exécutésaussi écrite: ValidateAsTyped
o1 = new stzRegex("(https?://)?(www\.)?[\w-]+\.com")
? o1.MatchAsYouType("www.")
? o1.MatchAsYouType("https://")
? o1.MatchAsYouType("example")
? o1.MatchAsYouType("example.")
? o1.MatchAsYouType("example.com")
#--> 1
#--> 1
#--> 1
#--> 1
#--> ...test de la bibliothèqueaucune extensionThe search counterpart: is a match either present, or still possible if more text arrives? Used for progressive/incremental search. 1 exemples exécutésaussi écrite: SearchInProgress
o1 = new stzRegex("quick.*fox")
? o1.MatchInProgress("qui")
? o1.MatchInProgress("quick br")
? o1.MatchInProgress("quick brown f")
? o1.MatchInProgress("slow")
#--> 1
#--> 1
#--> 1
#--> 0test de la bibliothèqueaucune extension(sans commentaire dans la source : le nom se lit comme une phrase) partial match info 6 exemples exécutésaussi écrite: MatchPartialInfodans la section partial matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? @@( o1.PartialMatchInfo("an") )
#--> [ [ "matchtype", "partial" ], [ "matched", "an" ], [ "section", [ 1, 2 ] ] ]composé à partir de la signature, exécuté pour cette page(sans commentaire dans la source : le nom se lit comme une phrase) find partial match 2 exemples exécutésdans la section partial matchQCSXTZZZIBWU
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.FindPartialMatch("an")
#--> 1composé à partir de la signature, exécuté pour cette pagePartialMatchStart
(sans commentaire dans la source : le nom se lit comme une phrase) partial match startdans la section partial matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.PartialMatchStart("an")
#--> 1composé à partir de la signature, exécuté pour cette pagePartialMatchLength
(sans commentaire dans la source : le nom se lit comme une phrase) partial match lengthaussi écrite: PartialMatchSize · PartialMatchNumberOfCharsdans la section partial matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.PartialMatchLength("an")
#--> 1composé à partir de la signature, exécuté pour cette pageMatchRecursive
(sans commentaire dans la source : le nom se lit comme une phrase) match recursiveaussi écrite: MatchNested · NestedMatch · RecursiveMatchdans la section recursive (nested) matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchRecursive("an")
#--> 0composé à partir de la signature, exécuté pour cette pageIsRecursiveMatch
(sans commentaire dans la source : le nom se lit comme une phrase) is recursive matchaussi écrite: IsNestedMatchdans la section recursive (nested) matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.IsRecursiveMatch()
#--> 0composé à partir de la signature, exécuté pour cette pageRecursiveMatchInfo
(sans commentaire dans la source : le nom se lit comme une phrase) recursive match infoaussi écrite: NestedMatchInfodans la section recursive (nested) matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? @@( o1.RecursiveMatchInfo() )
#--> [ [ "isrecursive", 0 ], [ "depth", 0 ], [ "matches", [ ] ] ]composé à partir de la signature, exécuté pour cette pageMatchManyRecursive
(sans commentaire dans la source : le nom se lit comme une phrase) match many recursiveaussi écrite: MatchManyNesteddans la section recursive (nested) matchQCSXTZZZIBWU
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchManyRecursive([ "an", "a" ])
#--> 0composé à partir de la signature, exécuté pour cette pageRecursiveSubStrings
(sans commentaire dans la source : le nom se lit comme une phrase) recursive sub stringsaussi écrite: NestedValues · NestedMatches · RecursiveValues · NestedSubStrings · RecursiveMatchesdans la section recursive (nested) matchQCSXTZZZIBWU
FindRecursiveSubStrings
(sans commentaire dans la source : le nom se lit comme une phrase) find recursive sub stringsaussi écrite: FindNested · FindRecursive · FindNestedValues · FindNestedMatches · FindRecursiveValues · FindRecursiveMatches · FindNestedSubPatterns · FindNestedSubStringsZdans la section recursive (nested) matchQCSXTZZZIBWU
RecursiveDepth
(sans commentaire dans la source : le nom se lit comme une phrase) recursive depthdans la section recursive (nested) matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.RecursiveDepth()
#--> 0composé à partir de la signature, exécuté pour cette pageNestedDepth
(sans commentaire dans la source : le nom se lit comme une phrase) nested depthdans la section recursive (nested) matchaucune extension
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.NestedDepth()
#--> 0composé à partir de la signature, exécuté pour cette pageExplain
explanation methodsQCSXTZZZIBWU

