The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses.
file_a.txt
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
// PHP snippet included in wp-config.php (or settings.php). | |
// Including from that location in a separate file is OK as well. | |
<?php | |
// Remove any leading "www." from the host name. | |
$redirect_host = str_replace('www.', '', $_SERVER['HTTP_HOST']); | |
$redirect_path = strtolower(rtrim($_SERVER['REQUEST_URI'])); | |
if (strlen($redirect_path) > 2) { | |
$redirect_path = rtrim($redirect_path, '/'); | |
} |
The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses.
file_a.txt
foo bar
ok [email protected] sup
[email protected],wyd
hello world!