News for hackers. Stuff that matters.
Re:Regular Expressions – Mastering Lookahead and Lookbehind by JepZ on Friday March 16, 2018 @09:57AM (#16600642)
I like to add the lookahead:

  grep -oP '(?<=...)pattern(?=...)'
The caveat however is that the look{ahead,behind} pattern has to be of fixed length.

There are no comments on this comment yet.