Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 529 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 529 Bytes

pcre

Filtering input and output with Perl Compatible Regular Expressions.

Expressions are loaded from file, with one expression per line.

example

The included sample program filters on stdout.

$ >  flag echo "The flag is: DefCon{FOOBAR}"
$ >  expr echo "My password is"
$ >> expr echo "Def[cC]on{.*"
$ >> expr echo "H(a)?ck+ th(e|3) pl4[net]{3}"
$ ./regex expr sh
$ echo hello
hello
$ whoami
user
$ ls -la flag
-rw-r----- 1 user user 28 Jun 24 22:04 flag
$ cat flag
Sorry, Dave.  I cant allow you to do that.