Date: Fri, 25 Sep 2009 05:22:54 -0400 From: grarpamp <grarpamp@gmail.com> To: freebsd-current@freebsd.org Subject: Re: regex lint Message-ID: <d2e731a10909250222k7db752e7haf60d8842f2a3cd8@mail.gmail.com> In-Reply-To: <868wg460ck.fsf@ds4.des.no> References: <d2e731a10909232232r24c6b587peb2936ecfd5875af@mail.gmail.com> <868wg460ck.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
> No, grep(1) uses the GNU regex library, while find(1) uses the > one from libc (which, among other shortcomings, is not localized). Ok. > /(foo|)/ is equivalent to /(foo)?/ I should've seen that grouping simplification. I was thinking this was all that was left to use: 'foo\.bar$|foo$' Thx.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d2e731a10909250222k7db752e7haf60d8842f2a3cd8>