[34499] trunk/dports/devel/bzr/Portfile

Adam Mercer ram at macports.org
Thu Feb 28 09:39:18 PST 2008


On Thu, Feb 28, 2008 at 1:31 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Feb 26, 2008, at 21:24, ram at macports.org wrote:
>
>  > +livecheck.check     regex
>  > +livecheck.url       ${homepage}
>  > +livecheck.regex     "Bazaar (\[0-9\]+\.\[0-9\]+) was released"
>
>  Note that "\." in a tcl string expressed in double quotes is
>  translated by tcl to "." so if you really want the regex engine to
>  see "\." you need to either write "\\." inside the double-quoted
>  string, or use curly brackets as your regex string encloser and then
>  don't use backslashes in front of special tcl characters.
>
>  Either
>
>  > livecheck.regex     "Bazaar (\[0-9\]+\\.\[0-9\]+) was released"
>
>  or
>
>  > livecheck.regex     {Bazaar ([0-9]+\.[0-9]+) was released}
>
>  would be correct.

Thanks Ryan, thats very helpful. I always have problems with regular
expressions.

Cheers

Adam


More information about the macports-dev mailing list