Skip to content

Instantly share code, notes, and snippets.

@htfy96
Last active January 30, 2016 16:02
Show Gist options
  • Save htfy96/652836a4340aec265624 to your computer and use it in GitHub Desktop.
Save htfy96/652836a4340aec265624 to your computer and use it in GitHub Desktop.
test.cpp
#include <unistd.h>
#include <cstddef>
int main()
{
execlp("grep", "grep", "-Po", "(?<=answer=\")[^\"]*(?=\")", "sample.in", NULL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment