[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Annotate and Lilyglyphs
From: |
Noeck |
Subject: |
Re: Annotate and Lilyglyphs |
Date: |
Fri, 06 Feb 2015 22:03:06 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
> OK, the problem seems to be that the regular expression that matches "any text
> between two "@" characters" doesn't correctly work when there are more than
> two
> such characters in the string. I would have to sort out how that regular
> expression can match these pairs independently.
Hi Urs,
this is known as ‘lazy’ and ‘greedy’ forms of regex patterns. It depends a bit
what kind of regex implementation you are using, but you can use these terms to
find help on the internet. E.g. here:
http://www.rexegg.com/regex-quantifiers.html#lazy_solution
Usually a question mark should solve this:
@.*@ versus @.*?@
HTH,
Joram
- Annotate and Lilyglyphs, Craig Dabelstein, 2015/02/05
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/05
- Re: Annotate and Lilyglyphs, Craig Dabelstein, 2015/02/05
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/05
- Re: Annotate and Lilyglyphs, Craig Dabelstein, 2015/02/06
- Re: Annotate and Lilyglyphs, Craig Dabelstein, 2015/02/06
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/06
- Re: Annotate and Lilyglyphs, Craig Dabelstein, 2015/02/06
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/06
- Re: Annotate and Lilyglyphs,
Noeck <=
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/06
- Re: Annotate and Lilyglyphs, Noeck, 2015/02/06
- Re: Annotate and Lilyglyphs, Br. Samuel Springuel, 2015/02/06
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/06
- Re: Annotate and Lilyglyphs, Craig Dabelstein, 2015/02/06
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/06
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/06
- Re: Annotate and Lilyglyphs, Craig Dabelstein, 2015/02/06
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/07
- Re: Annotate and Lilyglyphs, Urs Liska, 2015/02/07