diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-07 07:48:15 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-07 07:48:15 +0200 |
commit | e7b604c97e1e7aa03e82b18b380228752820ee3e (patch) | |
tree | 04ddd32c324b310e7791452dae4132d18dd71c5e /src/core | |
parent | 13fc108c6daabbdc4c3215884cec9e3f54ff7d21 (diff) | |
download | weechat-e7b604c97e1e7aa03e82b18b380228752820ee3e.zip |
core: fix example in comment of function string_replace_regex
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/wee-string.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 79e757db9..9e1965deb 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -1354,12 +1354,12 @@ string_replace_regex_get_replace (const char *string, regmatch_t *regex_match, * * Examples: * - * string | regex | replace | result - * ----------+---------------+-----------+------------- - * test foo | test | Z | Z foo - * test foo | ^(test +)(.*) | $2 | foo - * test foo | ^(test +)(.*) | $1 / $.*2 | test / *** - * test foo | ^(test +)(.*) | $.%+ | %%% + * string | regex | replace | result + * ----------+---------------+----------+------------- + * test foo | test | Z | Z foo + * test foo | ^(test +)(.*) | $2 | foo + * test foo | ^(test +)(.*) | $1/ $.*2 | test / *** + * test foo | ^(test +)(.*) | $.%+ | %%% * * Note: result must be freed after use. */ |