core: fix example in comment of function string_replace_regex
parent
13fc108c6d
commit
e7b604c97e
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue