Pattern to match 'graphic' characters
Contract| Parameter key | Default value | Type | | a_type | type.<one_of pattern.alphanumeric pattern.punctuation/> | one_of | | regex_string | "[a-zA-Z0-9]|[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]" | string | | Water Contract<class pattern.graphic
a_type =<type.one_of pattern.alphanumeric pattern.punctuation/>
regex_string ="[a-zA-Z0-9]|[!&quot;#$%&amp;'()*+,-./:;<=>?@[\]^_`{|}~]"=string
_native_object=<ja.org.apache.regexp.RE/>
/> | |
See also: is_type_for, get_string_segments, replace_string_segments, string_segment, alphanumeric, punctuation, printing
Returns a pattern with a regex_string field set to
" [a-zA-Z0-9]|[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~] ", a combination of
alphanumeric and punctuation characters. This pattern is useful for
matching these so-called 'graphic' characters in the target string.
Example: String contains graphic characters
<pattern pattern.<one_or_more pattern.graphic /> />.
<is_type_for <join char.tab "Abc" char.carriage_return char.newline /> />
 | true |
Example: Does not contain graphic characters
<pattern pattern.<one_or_more pattern.graphic /> />.
<is_type_for <join char.tab char.formfeed char.space
char.carriage_return char.newline /> />
 | false |
© Copyright 2007 Clear Methods, Inc.