fork(1) download
  1. #!/usr/bin/perl
  2. my $str = "// filename : foo_foo";
  3. if ($str =~ m{^//\h*filename\s*:\s*(.+)}) {
  4. print "regex $1 \n";
  5. }
Success #stdin #stdout 0.01s 5512KB
stdin
Standard input is empty
stdout
regex foo_foo