2 substr - extract a substring of given string
9 pos nonnegative integer
10 len nonnegative integer
15 If pos > length of str or len is zero, the null string "" is returned.
17 If 1 <= pos <= strlen(str), substr(str, pos, len) returns the
18 string of length min(strlen(str) - pos + 1, len) formed by
19 consecutive characters of str starting at position pos, i.e. the
20 string has length len if this is possible, otherwise it ends with
21 the last character of str. (The first character has pos = 1, the
24 If pos = 0, the result is the same as for pos = 1.
28 > print substr(A,0,2), substr(A,1,2), substr(A,4,1), substr(A,3,5)