fork(1) download
  1. #!/usr/bin/perl -wn
  2. print if /^(f(o[^o]|[^o])|[^f])*$/;
  3.  
Success #stdin #stdout 0s 4596KB
stdin
f, fo or barf
f
fo
barf
foo
'foo'
abdfoode
abdfode
abdfde
abcde
f

 
fo
foo
fooo
ofooa
ofo
ofoo
stdout
f, fo or barf
f
fo
barf
abdfode
abdfde
abcde
f

 
fo
ofo