mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
core: fix example in comment of function string_replace_regex
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user