MatchAsYouType()
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.
also written: ValidateAsTyped
Basic examples (2)
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 1
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from 06_partial_match_autocomplete_suggestions.ring(opens in a new tab)
o1 = new stzRegex("\d{3}-\d{2}-\d{4}") # Social security number pattern
? o1.MatchAsYouType("123")
? o1.MatchAsYouType("123-")
? o1.MatchAsYouType("123-45")
? o1.MatchAsYouType("123-45-6789")
? o1.MatchAsYouType("abc")1 1 1 1 0
run on 2026-10-02 04:23 inside the library at commit 0e72e2e2c; taken from 03_partial_match_form_validation_as_user_types.ring(opens in a new tab)
The extensions of this method
Each extension, and whether it exists for this method; an extension that exists combines with the others (FindSTCS).
Every example is a test file of the library, run inside the library for this page; only those whose output kept every promise their file wrote are shown.

