Softanza
DémarrerEnglish
Softanza
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 seeting
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
o1.SetPattern("an")
? o1.Content()
#--> an
composé à partir de la signature, exécuté pour cette page
aucune extension
String
(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 methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchType()
#--> matchentirecontent
composé à partir de la signature, exécuté pour cette page
QCSXTZZZIBWU
MatchOptions
(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 methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasMatch()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
HasPartialMatch
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.
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasPartialMatch()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
LastMatchKind
The kind of the last match: 0 none, 1 complete, 2 partial.
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.LastMatchKind()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
MatchLinesIn
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: MatchLine
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchLinesIn("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
MatchFirstLineIn
(sans commentaire dans la source : le nom se lit comme une phrase) match first line inaussi écrite: MatchFirstLinedans la section matching methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchFirstLineIn("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
(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
#--> 0
test de la bibliothèqueaucune extension
MatchFirstWordIn
(sans commentaire dans la source : le nom se lit comme une phrase) match first word inaussi écrite: MatchFirstWorddans la section matching methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchFirstWordIn("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
MatchSegmentsIn
(sans commentaire dans la source : le nom se lit comme une phrase) match segments inaussi écrite: MatchSegmentdans la section matching methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchSegmentsIn("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
MatchFirstSegmentIn
(sans commentaire dans la source : le nom se lit comme une phrase) match first segment inaussi écrite: MatchFirstSegmentdans la section matching methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchFirstSegmentIn("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
This 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 · MatchString
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.Match("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
QCSXTZZZIBWUMany
MatchFirst
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 · MatchAnywhere
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchFirst("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
MatchAt
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, ...).
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchAt("an", 2)
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
Getting 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 methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.NumberOfMatches()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
NumberOfChars
(sans commentaire dans la source : le nom se lit comme une phrase) number of charsaussi écrite: CapturedLengthdans la section matching methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.NumberOfChars()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
FindMatches
(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 methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasGroups()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
(sans commentaire dans la source : le nom se lit comme une phrase) has names 1 exemples exécutésdans la section group capture-related methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasNames()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
(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 methods
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.HasValues()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
Named 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 validation
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.CaptureCount()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
IsValid
pattern information and validationaussi écrite: IsValidPattern
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.IsValid()
#--> 1
composé à partir de la signature, exécuté pour cette page
aucune extension
LastError
pattern information and validationaucune extension
PatternErrorOffset
pattern information and validation
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.PatternErrorOffset()
#--> -1
composé à partir de la signature, exécuté pour cette page
aucune extension
TRUE 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 · PartialMatch
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.IsPartialMatch("an")
#--> 1
composé à partir de la signature, exécuté pour cette page
QCSXTZZZIBWU
IsCompleteMatch
(sans commentaire dans la source : le nom se lit comme une phrase) is complete matchaussi écrite: IsCompletedans la section partial match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.IsCompleteMatch("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
This 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 extension
The 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
#--> 0
test 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 match
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
aucune extension
(sans commentaire dans la source : le nom se lit comme une phrase) find partial match 2 exemples exécutésdans la section partial match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.FindPartialMatch("an")
#--> 1
composé à partir de la signature, exécuté pour cette page
QCSXTZZZIBWU
PartialMatchStart
(sans commentaire dans la source : le nom se lit comme une phrase) partial match startdans la section partial match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.PartialMatchStart("an")
#--> 1
composé à partir de la signature, exécuté pour cette page
aucune extension
PartialMatchLength
(sans commentaire dans la source : le nom se lit comme une phrase) partial match lengthaussi écrite: PartialMatchSize · PartialMatchNumberOfCharsdans la section partial match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.PartialMatchLength("an")
#--> 1
composé à partir de la signature, exécuté pour cette page
aucune extension
MatchRecursive
(sans commentaire dans la source : le nom se lit comme une phrase) match recursiveaussi écrite: MatchNested · NestedMatch · RecursiveMatchdans la section recursive (nested) match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchRecursive("an")
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
IsRecursiveMatch
(sans commentaire dans la source : le nom se lit comme une phrase) is recursive matchaussi écrite: IsNestedMatchdans la section recursive (nested) match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.IsRecursiveMatch()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
RecursiveMatchInfo
(sans commentaire dans la source : le nom se lit comme une phrase) recursive match infoaussi écrite: NestedMatchInfodans la section recursive (nested) match
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 page
aucune extension
MatchManyRecursive
(sans commentaire dans la source : le nom se lit comme une phrase) match many recursiveaussi écrite: MatchManyNesteddans la section recursive (nested) match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.MatchManyRecursive([ "an", "a" ])
#--> 0
composé à partir de la signature, exécuté pour cette page
QCSXTZZZIBWU
RecursiveSubStrings
(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) match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.RecursiveDepth()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
NestedDepth
(sans commentaire dans la source : le nom se lit comme une phrase) nested depthdans la section recursive (nested) match
exemple composé
o1 = new stzRegex("[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+")
? o1.NestedDepth()
#--> 0
composé à partir de la signature, exécuté pour cette page
aucune extension
Explain
explanation methodsQCSXTZZZIBWU