lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple replacements in one regular expression?


From: Johan Vromans
Subject: Re: Multiple replacements in one regular expression?
Date: Wed, 21 Jan 2015 14:30:11 +0100

On Wed, 21 Jan 2015 14:01:35 +0100
Urs Liska <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]