Pattern for matching punctuation characters
Contract| Parameter key | Default value | Type | | a_type | opt | | regex_string | "[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]" | string | | Water Contract<class pattern.punctuation
regex_string ="[!&quot;#$%&amp;'()*+,-./:;<=>?@[\]^_`{|}~]"=string
_native_object=<ja.org.apache.regexp.RE/>
/> | |
See also: is_type_for, get_string_segments, replace_string_segments, string_segment
Returns a pattern with a regex_string field set to
" [!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~] ".
Example: Match string of punctuation only
<pattern pattern.start_of_line
pattern.<one_or_more pattern.punctuation />
pattern.end_of_line />.
<is_type_for "!@#$%" /> | true |
Example: Does not match alphabetic characters
<pattern pattern.start_of_line
pattern.<one_or_more pattern.punctuation />
pattern.end_of_line />.
<is_type_for "!@#$not%" /> | false |
© Copyright 2007 Clear Methods, Inc.