September 2009
Beginner
942 pages
85h 34m
English
sub
sub(regex,str[,target])
Substitute str for first match of the regular expression regex in the string target. If target is not supplied, defaults to $0. Returns 1 if successful, 0 otherwise. Use & in the replacement string to stand for the text matched by the pattern.