Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C21D1DAF8 for ; Sun, 5 Aug 2012 23:17:09 +0000 (UTC) Received: (qmail 3113 invoked by uid 500); 5 Aug 2012 23:17:09 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 3047 invoked by uid 500); 5 Aug 2012 23:17:09 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 3034 invoked by uid 99); 5 Aug 2012 23:17:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2012 23:17:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of flester@gmail.com designates 209.85.212.41 as permitted sender) Received: from [209.85.212.41] (HELO mail-vb0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2012 23:17:03 +0000 Received: by vbkv13 with SMTP id v13so2441145vbk.0 for ; Sun, 05 Aug 2012 16:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=oSFQBSJmt7DDLF1A4no5MAQytOYtaBryLI5SlN43nqk=; b=F/XqPtb+dFc59XC+mtau4cvAcrtRhEE6wa2h2mZzr/kU37Edl9Q1EfYSXhBp57/T6e i4IQ94LwPI0asmE1yuZgVvCfcp2HhKRCWFMHvGqnf+o6DPYZI3FBWlCwgXB6T7G272K/ ig+zVzmT+Na2bxvqIL3jKS4wuPDBLFT5Y+ZClA34H318CwmDbdhKLQTsJ8YrkUQnP8db CrtN/UIthMALZiOaX91XDYK0FjxGNpKvgq9NpKAjY0PMo7hcYw01CbCUE14oB1yNFLrG el9gR5wUYOnq+BsIIkoavFygNVNpZtvtLIh5oIpGejinGvYb4ecKav6Lcl9FFEWu1uaM 70hw== Received: by 10.52.17.75 with SMTP id m11mr1590228vdd.106.1344208602962; Sun, 05 Aug 2012 16:16:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.14.234 with HTTP; Sun, 5 Aug 2012 16:16:27 -0700 (PDT) In-Reply-To: References: <751586763.199531.1343413258369.JavaMail.root@linzimmb04o.imo.intelink.gov> From: Michael Flester Date: Sun, 5 Aug 2012 19:16:27 -0400 Message-ID: Subject: Re: egrep usage - 1.3.4 To: user@accumulo.apache.org Content-Type: multipart/alternative; boundary=bcaec502d8de489b3a04c68cf4eb X-Virus-Checked: Checked by ClamAV on apache.org --bcaec502d8de489b3a04c68cf4eb Content-Type: text/plain; charset=UTF-8 Keith -- Switching from match to find should be no change for anyone that is currently using it. All patterns that "match" will equally "find". But new users would be able to take advantage of not adding the wildcards on both ends. Mike On Tue, Jul 31, 2012 at 11:21 AM, Keith Turner wrote: > On Sun, Jul 29, 2012 at 9:47 PM, Michael Flester > wrote: > > > > > > On Sat, Jul 28, 2012 at 7:57 PM, John Vines wrote: > >> > >> And when dealing with java, it does full matches, so adding the .* to > >> start and end is necessary. > >> > > > > Java has both Matcher#matches and Matcher#find. The latter would operate > > more > > like the egrep(1) command without requiring the wildcards on both ends. > > Ah, It should have used the find() call when it was first written. > Changing it now would be tricky because people who expect the current > behavior could get unexpected results. I think we are kinda stuck > with the current behavior. Could possibly add an option to use > find() instead of match(). > --bcaec502d8de489b3a04c68cf4eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Keith --

Switching from match to find should be no chang= e for anyone that is currently using it.
All patterns that "= match" will equally "find". But new users would be able to t= ake advantage
of not adding the wildcards on both ends.

Mik= e


On Tue, Jul 31, 2012 at 11:2= 1 AM, Keith Turner <keith@deenlo.com> wrote:
On S= un, Jul 29, 2012 at 9:47 PM, Michael Flester <flester@gmail.com> wrote:
>
>
> On Sat, Jul 28, 2012 at 7:57 PM, John Vines <vines@apache.org> wrote:
>>
>> And when dealing with java, it does full matches, so adding the .*= to
>> start and end is necessary.
>>
>
> Java has both Matcher#matches and Matcher#find. The latter would opera= te
> more
> like the egrep(1) command without requiring the wildcards on both ends= .

Ah, It should have used the find() call when it was first writt= en.
Changing it now would be tricky because people who expect the current
behavior could get unexpected results. =C2=A0I think we are kinda stuck
with the current behavior. =C2=A0 Could possibly add an option to use
find() instead of match().

--bcaec502d8de489b3a04c68cf4eb--