Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
JepZ
on March 16, 2018
|
parent
|
context
|
favorite
| on:
Regular Expressions – Mastering Lookahead and Look...
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: