Regex

Created Thursday 28 November 2013

  1. Info:
    1. http://www.regular-expressions.info/
  2. Some references:
    1. http://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx
    2. http://php.net/manual/en/reference.pcre.pattern.syntax.php
    3. http://www.regextester.com/pregsyntax.html
    4. http://networking.ringofsaturn.com/Web/regex.php
    5. http://www.emacswiki.org/emacs/RegularExpression

type master;
file "/path/to/domain1.com.zone";
also-notify { 127.0.0.1; 10.0.0.1; 169.254.0.1; 192.168.1.1; };
allow-transfer { localhost; 127.0.0.1; 10.0.0.1; 169.254.0.1; 192.168.1.1; };
};

zone "domain2.com" IN {
allow-transfer { localhost; 127.0.0.1; 10.0.0.1; 169.254.0.1; 192.168.1.1; };
type master;
file "/path/to/domain2.com.zone";
};
......

$ip_list = '';
if (is_array($params[7])) {
foreach ($params[7] as $ip) {
$ip_list .= '&ip=' . $ip;
}
} else {
$ip_list .= '&ip=' . $params[7];
}
/* POST something
something else
*/



Backlinks: