lilypond-user
[Top][All Lists]
Advanced

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

Re: adding to the LSR


From: Carl D. Sorensen
Subject: Re: adding to the LSR
Date: Sat, 2 May 2009 10:50:28 -0600



On 5/2/09 5:50 AM, "Daniel Hulme" <address@hidden> wrote:

> On Wed, Apr 29, 2009 at 09:54:09PM +0800, Graham Percival wrote:
>> Is it worth defining our own function
>>   replaceOnly("\\octave", ...)
>> which does
>>   re.sub("\\octave[?a-z,A-Z]", ...)
>> or whatever the regex was?
> 
> \\octave\b would work fine. \b matches a word Boundary.

I think that LilyPond word boundaries are different from Python word
boundaries.

For example, LilyPond identifiers cannot contain numbers or special
characters.  That's why only alphabetic characters were chosen for
exclusion, IMO.

Carl







reply via email to

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