On Wed, 21 Jan 2015 14:01:35 +0100
Urs Liska <[email protected]> wrote:

> So what I really need is:
> match (&)(\)([)
> and replace that with
> (\&)(\textbackslash )({})

I know how to do this in Perl, but my knowledge of scheme regex matching is
insufficient to translate the Perl cleverness into scheme.

Maybe you can define an assoc list and construct the individual
match/replace functions on the fly? I wouldn't worry about runtime
efficiency until it gets in the way.

-- Johan

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to