in reply to Re: Excluding Words in RegEx
in thread Excluding Words in RegEx
#!/usr/bin/perl -w use strict; while (<DATA>) { print unless /\bgroup\b/; } =prints: This line is OK But keep this grouped content =cut __DATA__ This line is OK This line should be skipped: 'group' Drop this group too But keep this grouped content
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Excluding Words in RegEx
by CountZero (Bishop) on Nov 06, 2011 at 16:31 UTC |