On Thu, Nov 27, 2014 at 2:46 PM,  <jkal...@apache.org> wrote:
> Author: jkaluza
> Date: Thu Nov 27 13:46:11 2014
> New Revision: 1642154
>
> URL: http://svn.apache.org/r1642154
> Log:
> * ap_exr: Add replace(string, from, to) function.

Maybe it is worth noting (doc?) that "from" is a ap_strmatch() pattern
(with wildcards [*?]), hence eg.
replace("abc*def",  "c*", "gh") is "abgh", and not "abghef" as one may expect.

Maybe then we should name this one replace_match(), and have replace()
(or replace_string) working on pure string patterns.
Likewise replace_regex(string, capture, substitution) would be nice to have.

Regards,
Yann.

Reply via email to