next up previous contents index
Next: Mark Up: Regular expressions Previous: re_match_end

re_replace

    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 omited, the previous search call to a regexp is used. It returns 1 on success, else 0 (see GNU regexp manual).



Lionel Fournigault
Mon Dec 15 10:53:26 MET 1997