Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Match all emails from all subdomains for a domain except one..

by ehdonhon (Curate)
on Aug 09, 2003 at 02:37 UTC ( #282362=note: print w/replies, xml ) Need Help??


in reply to Re: Match all emails from all subdomains for a domain except one..
in thread Match all emails from all subdomains for a domain except one..

Yes, it has to be one regex... basically I'm using some third-party software (which I don't want to have to hack) that wants me to provide it with the contents of a regular expression in a config variable so that it can use it later for substitution. Something like this:
# IN the config file $regexp = '@example.com'; $replacement = '@other.com'; # Many places nestled in the code $mail = s/$regexp/$replacement;

I think I found what I was looking for. Thanks to all.

  • Comment on Re: Re: Match all emails from all subdomains for a domain except one..
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-05-21 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?