[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: grep -P -i "hello\Wworld"

From: Tony Abou-Assaleh
Subject: Re: Bug: grep -P -i "hello\Wworld"
Date: Wed, 3 Oct 2007 14:31:53 -0300 (ADT)

Thanks for the bug report, Mathias.

I can confirm that -P and -i don't work well together.

I think correcting this bug is not too complex. It requires passing
the ignore-case options to PCRE while leaving the original pattern intact.
Would you be interested in submitting a patch?



Tony Abou-Assaleh
Email:    address@hidden
Web site: http://tony.abou-assaleh.net
----------------------[THE END]----------------------

On Wed, 3 Oct 2007, Mathias wrote:

> Hey mighty GNU/grep people.
> When using perl-style, case-insensitive regular expressions, the input
> regex is lowercased. This also turns \W, \S and \D into \w, \s and \d,
> respectively. This can be worked around, but I still think it should
> be considered a bug, since there was no indications at first - all I
> got was empty stdout and stderr, and -c returned 0 lines.
> I used it to split input separated by whitespace - ^\s*\S+\s+\S+ etc.
> Thanks in advance, and thanks for a great to(ol|y).
> --
> Mvh. Mathias Rav
> Webudvikler hos Rav-stamps
> address@hidden
> --------
> Regards, Mathias Rav.
> Web developer at Rav-stamps
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]