[collectd] backreferences in replace target

Florian Forster octo at collectd.org
Thu Feb 21 08:02:16 CET 2013

Hi Kimo,

On Wed, Feb 20, 2013 at 04:07:03PM -0800, Kimo Rosenbaum wrote:
> Is it possible to use backreferences in a replace target? ie:

no, this is currently not possible. I guess it would be pretty straight
forward to iterate over the "pmatch" array filled by regexec() and use
the utility functions in src/utils_subst.h to replace "\1", ...

Best regards,
collectd – The system statistics collection daemon
Website: http://collectd.org
Google+: http://collectd.org/+
GitHub:  https://github.com/collectd
Twitter: http://twitter.com/collectd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20130221/f25e6fe4/attachment.pgp>

More information about the collectd mailing list