Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Match domain names except one

by vinoth.ree (Monsignor)
on Feb 13, 2013 at 08:02 UTC ( #1018496=note: print w/replies, xml ) Need Help??

in reply to Match domain names except one

should not match with the string (wt)

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__

Replies are listed 'Best First'.
Re^2: Match domain names except one
by Anonymous Monk on Feb 13, 2013 at 08:16 UTC
    Thanks. But we need it in a regex

      What strange business requirement indicates that you "need it in a regex"?


      When your only tool is a hammer, all problems look like your thumb.

      Well then, I have some excellent news for you: /\.wt\./ is a regex.

      Thanks. But we need it in a regex

      Maybe you can write a regex

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018496]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-10-26 22:14 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (350 votes). Check out past polls.