in reply to Re: Delete all "records" which contain a regex match
in thread Delete all "records" which contain a regex match
Attempt 2 (completely nonsensical):#!/usr/bin/perl -w undef $/; while (<>) { s/^COMMENT:\s+AUTHOR: .*?poker.*?^-----$//gsm; print; }
#!/usr/bin/perl -w #undef $/; while (<>) { next unless (@foo = /^COMMENT:$/ ... /^-----$/); print if ! /poker/; # $_ =~ /poker/; # print $_, "\n"; print @foo; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Delete all "records" which contain a regex match
by prasadbabu (Prior) on Jun 05, 2006 at 16:04 UTC |