Regexp type
Suchjs built-in type, regular expression is a very powerful type that can generate strings in some special formats. It is also the basic type of commonly used extension types. For details, see :regexp type document
Demo
-
Such.as(":regexp:/[a-z]{3,10}/")
-
Such.as(":regexp:/[a-z]{3,10}/i")
-
Such.as(":regexp:/[\u{5f}-\u{79}]{3,10}/u")
-
Such.as(":regexp:/(?<name>[a-z]{3,10})_\\k<name>/")