Hi List,

Sorry for the frustrating question, but how do I combine Samuel's code
-- @[^@]*@
-- with an annotate message such as -- "Should the @\textit{cresc.} begin
here or immediately after the preceeding \lilyDynamics{pp}@?"

Craig


On Sat Feb 07 2015 at 7:49:15 AM Urs Liska <[email protected]> wrote:

>
> Am 06.02.2015 um 22:46 schrieb Br. Samuel Springuel:
> > On 2015-02-06 4:18 PM, Noeck wrote:
> >> You could also enforce this by now allowing all characters between
> >> the @:
> >> e.g. @[-a-zA-Z\\_]*@
> >
> > Rather than include all characters not "@" it would be better to
> > simply exclude "@".  I.e.:
> >
> > @[^@]*@
> >
> > The "^", when it is the first character inside a brace changes the
> > brace from meaning "anything in this group" to meaning "anything not
> > in this group".  As a result this expression will match an string
> > contained between to "@" characters which does not itself contain an @
> > character.
> >
> > I'm fairly certain this is standard for regular expressions.
>
> Maybe. In any case it seems to work for the problem at hand, while
> "@.*?@" did not work.
>
> Thanks
> Urs
>
> >
> >
> > ✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
> > Br. Samuel, OSB
> > (R. Padraic Springuel)
> >
> > PAX ☧ ΧΡΙΣΤΟΣ
> >
> > _______________________________________________
> > lilypond-user mailing list
> > [email protected]
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to