Water 5-Common Data Types-String Regex
class pattern.zero_or_more
Match a pattern zero or more times
Contract
Parameter keyDefault valueType
a_patternreq
a_typeopt
regex_stringoptstring
greedyfalseboolean
Water Contract
<class pattern.zero_or_more
  a_pattern     =req
  greedy        =false=boolean
/>

See also: is_type_for, get_string_segments, replace_string_segments, string_segment, quantity, zero_or_one, one_or_more

This class is used to specify the number of times the given pattern should be repeated contiguously in the target string.

a wob
Parameter keyDefault valueType
a_patternreq
Any valid pattern. The pattern will match zero or more times.

Example: Pattern matches the target
<pattern "xxx"
         pattern.<zero_or_more pattern.uppercase />
         "zzz" />.
<is_type_for "xxxAAABBCCzzz" />
true
Example: Pattern is interrupted in the target
<pattern "xxx"
         pattern.<zero_or_more pattern.uppercase />
         "zzz" />.
<is_type_for "xxxAAAbzzz" />
false