[cvsnt] Re: How do I use module2?
Tony Hoyle
tmh at nodomain.org
Thu Aug 12 10:01:36 BST 2004
John Kinson wrote:
> Tony, your ERE example in the manual isn't right (unless you've
> implemented a non-standard RE engine).
>
> In the line
>
> / = myproject (*\.cpp$|*\.[ch]$|*/$)
>
> Surely that should either be
>
> / = myproject (.*\.cpp$|.*\.[ch]$|.*/$)
>
> or more simply
>
> / = myproject (\.cpp$|\.[ch]$|/$)
>
Actually all 3 should work, but the first one is a little bit more like
the way Windows users expect it to work (the regexp engine implicitly
translates * in the first character to .*).
eg. you can use (*.cpp) and it'll work (but might bring back some
unexpected files in that case)
Tony
More information about the cvsnt
mailing list