Hi Urs, to be a bit more clear and verbose:
>> Usually a question mark should solve this: >> @.*@ versus @.*?@ The former matches the longest possible string enclosed in @’s: For “This @is@ a simple @Test@!”, the matched pattern is: “@is@ a simple @Test@”. The latter matches the shortest possible string, i.e. two groups: “@is@” and “@Test@”. You could also enforce this by now allowing all characters between the @: e.g. @[-a-zA-Z\\_]*@ This page is a nice tool to test a list of cases: http://regexpal.com/ Cheers, Joram _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user