|  |  
 |   |   
 NAMEregex_sub – Replaces matches of a regular expression in a string SYNOPSIS
 DESCRIPTIONregex_sub() searches maximal substring that the regular expression given as parameter matches in intput and replaces it with the replace value. Returns the result of the remplacement. The return value will need to be freed by the programmer. If no occurence is found the string returned is simply the same and the input string. re The regular expressions to match against input The input string to replace from. replace The string to replace occurences found with. RETURN VALUEregex_sub() The input string with the replaced values. If there is no match in the input string, the return value is the same as the input. The return value will need to be freed by the programmer. EXAMPLESProgram that replaces any version number in a file with the latest one 
 SEE ALSO
 
 
 |