On 5/2/09 5:50 AM, "Daniel Hulme" <s...@istic.org> 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





_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to