Skip to content

Instantly share code, notes, and snippets.

@lemenkov
Created July 25, 2013 12:43
Show Gist options
  • Save lemenkov/6079247 to your computer and use it in GitHub Desktop.
Save lemenkov/6079247 to your computer and use it in GitHub Desktop.
Regexp for lookbeghind and lookahead
grep -o -P "(?<=elapsed time: )[0-9]*(?= microsec)" ~/messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment