- strcmp(str0, str1): compare two strings alphabetically; returns -1, 0, 1 if
str0 is <, ==, or > str1
respectively.
- trim(str): returns a copy of str with leading and trailing
blanks removed.
- ltrim(str):
returns a copy of str with leading
blanks removed.
- rtrim(str):
returns a copy of str with trailing
blanks removed.
- split(str): split str at the spaces. For example,
split("My gold fish is evil") return list
("My", "gold", "fish", "is", "evil".
- split(str, sep): split str at the positions where
string sep occurs.
- regexp(s):
has three parameters patter, options, and match.
match string s against regular expression pattern.
Return the position of the first occurence.
- reggexp(s):
has three parameters patter, options, and match.
match string s against regular expression pattern.
Return the positions of all the occurences.
- regsub():
has three parameters patter, substitute, and options.
match string s against regular expression pattern.
Replace first occurence with substitute.
- reggsub():
has three parameters patter, substitute, and options.
match string s against regular expression pattern.
Replace all occurences with substitute.
oz
2009-12-22