Skip to content

Instantly share code, notes, and snippets.

@lennartkoopmann
Created August 7, 2013 21:57
Show Gist options
  • Save lennartkoopmann/6179176 to your computer and use it in GitHub Desktop.
Save lennartkoopmann/6179176 to your computer and use it in GitHub Desktop.
lennart ~/workspace/graylog2/graylog2-web-interface(play)$ curl -XGET 'http://localhost:12900/tools/regex_tester?string=%3C10%3E%2007%20Aug%202013%20somesubsystem%3A%20this%20is%20my%20message%20for%20yo&regex=%5E.*somesubsystem%3A%20(.%2B)&pretty=true' -p0
{
"regex" : "^.*somesubsystem: (.+)",
"matched" : true,
"string" : "<10> 07 Aug 2013 somesubsystem: this is my message for you",
"match" : {
"start" : 32,
"match" : "this is my message for you",
"end" : 58
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment