int re_forward_search(char * regexp)
Returns the position of the next regular expression regexp or -1 if regexp has not been found or -2 if regexp is not valid.
int re_backward_search(char * regexp)
Returns the position of the previous regular expression regexp or -1 if regexp has not been found or -2 if regexp is not valid.
Returns the beginning position of the substring n of the regexp found by the previous search call to a regexp else -1 if regexp is not valid. The first substring of a regexp is numbered 0. (see GNU regexp manual).
Returns the end position of the substring n of the regexp found by the previous search call to a regexp, else -1 if regexp is not valid (see GNU regexp manual).
int re_replace(char *newstring)
int re_replace(char *newstring, char * regexp)
Replaces the regular expression regexp with the string newstring. If the argument regexp is ommited, the previous search call to a regexp is used. It returns 1 on success, else 0 (see GNU regexp manual).