git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bug: git grep -P and multiline mode
@ 2014-06-23  6:54 Noel Grandin
  2014-06-23 17:42 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Noel Grandin @ 2014-06-23  6:54 UTC (permalink / raw)
  To: git@vger.kernel.org

Hi

It looks like the perl regular expression multiline mode does not work with 'git grep'

for example, something like

    git grep -P '(?s)foo.*?bar"

will not match a file in the repo where it has something like

    foo
    bar

ie. split across two lines

Regards, Noel Grandin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-24  7:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23  6:54 bug: git grep -P and multiline mode Noel Grandin
2014-06-23 17:42 ` Junio C Hamano
2014-06-24  7:34   ` Noel Grandin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).