akshayrao14 / git-practices

The latest version of best practices for git
0 stars 1 forks source link

Lookaheads/Lookbehinds are not supported in grep -E #6

Closed Harkarman closed 1 day ago

Harkarman commented 1 month ago

For mac, changing to grep -E instead of grep -P breaks lookaheads/lookbehinds.

Possible solutions:

  1. Use grep -E with alternate regex.
  2. Use perl -nle instead of grep.
akshayrao14 commented 1 day ago

Already handled in #7