core: change text in comment of function string_replace_regex

v2.8-utf8proc
Sebastien Helleu 2014-02-14 10:54:38 +01:00
parent f4606ef0a9
commit 0bfacb5592
1 changed files with 3 additions and 4 deletions

View File

@ -1296,11 +1296,10 @@ string_replace_regex_get_replace (const char *string, regmatch_t *regex_match,
}
/*
* Replaces a string by new one in a string, using a regular expression for
* searching string.
* Replaces text in a string using a regular expression and replacement text.
*
* The argument "regex" is a pointer to a regex compiled with function regcomp
* (or WeeChat function string_regcomp).
* The argument "regex" is a pointer to a regex compiled with WeeChat function
* string_regcomp (or function regcomp).
*
* The argument "replace" can contain references to matches:
* $0 .. $99 match 0 to 99 (0 is whole match, 1 .. 99 are groups captured)