Match a pattern one or more times
Contract| Parameter key | Default value | Type | | a_pattern | req | | a_type | opt | | regex_string | opt | string | | greedy | false | boolean | | 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 key | Default value | Type |
| a_pattern | req |
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 |
© Copyright 2007 Clear Methods, Inc.