Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 ( [id://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.

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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-03-28 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found