accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Turner <ke...@deenlo.com>
Subject Re: egrep usage - 1.3.4
Date Tue, 31 Jul 2012 15:21:37 GMT
On Sun, 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 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().

Mime
View raw message