Noel Grandin <> writes:

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

Yes, and deliberately so, to avoid having to think about things like
"how would a multi-line match interact with 'grep -n'?"

We behave as if we feed each line of the contents one line at a time
to the matching engine that is chosen by the -P/-E/-G/-F optoins, so
this limitation is unlikely to change.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to