git/list[1] front-page[2] threads[3] people[4] search[5] about
 

bug: git grep -P and multiline mode

From
Noel Grandin <noelgrandin@gmail.com>
Date
Jun 23, 2014, 06:54 UTC
Message-ID
<53A7CF25.7060508@gmail.com>
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
Next: Junio C Hamano
Message 1 of 3 in “bug: git grep -P and multiline mode”
  1. Noel GrandinJun 23, 2014
  2. Junio C HamanoJun 23, 2014
  3. Noel GrandinJun 24, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.