class pattern.one_or_more
Match a pattern one or more times
Contract
Parameter keyDefault valueType
a_patternreq
a_typeopt
regex_stringoptstring
greedyfalseboolean
Water Contract
<class pattern.one_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, zero_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 one or more times.

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