in reply to Re^2: Match typo
in thread Match typo
If you want an exact match, that's easy:
while (<DATA>){ print "matched\n" if /publish/ and /date/; }
But note that this would also match "the date was published on"...
If the order in which the words must occur is relevant, you could do
while (<DATA>){ print "matched\n" if /publish.*date/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |