in reply to Match domain names except one
If you do not want to match wt string directly check for unless /\.wt\./ and print.
use strict; use warnings; use utf8; while(<DATA>) { unless(/\.wt\./) { print "matches : $_\n"; } } __DATA__ https://www.abc.com.wi.pr.com/ https://www.abc.com/ https://www.def.com.wi.pr.com/ https://www.wt.com.wi.pr.com/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Match domain names except one
by Anonymous Monk on Feb 13, 2013 at 08:16 UTC | |
by roboticus (Chancellor) on Feb 13, 2013 at 13:21 UTC | |
by hippo (Archbishop) on Feb 13, 2013 at 14:42 UTC | |
by Anonymous Monk on Feb 13, 2013 at 08:31 UTC |