<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry but you must have dhcp 4.0 man pages, because I don't have that
information on my 3.1.0 man page for dhcp-eval... <br>
Only data-expression-1 = data-expression-2.<br>
<br>
But now that 4.0 is released I will try it if it supports regex.<br>
<br>
David W. Hankins a écrit :
<blockquote cite="mid:20080103181223.GC22010@isc.org" type="cite">
  <pre wrap="">On Thu, Jan 03, 2008 at 11:30:37AM -0600, Frank Bulk wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">What we really need is standard regex in this matching stuff.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
wget <a class="moz-txt-link-freetext" href="ftp://ftp.isc.org/isc/dhcp/dhcp-3.1.0.tar.gz">ftp://ftp.isc.org/isc/dhcp/dhcp-3.1.0.tar.gz</a>
tar xzf dhcp-3.1.0.tar.gz
cd dhcp-3.1.0
./configure ; make ; sudo make install
man dhcp-eval
/~=

       data-expression-1  ~=  data-expression-2
       data-expression-1  ~~  data-expression-2

          The ~= and ~~ operators  (not  available  on  all  systems)  perform
          extended  regex(7)  matching  of the values of two data expressions,
          returning true if  data-expression-1  matches  against  the  regular
          expression  evaluated  by data-expression-2, or false if it does not
          match or encounters some error.  If either the left-hand side or the
          right-hand side are null, the result is also false.  The ~~ operator
          differs from the ~= operator in that it is case-insensitive.

  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="80">-- 
Denis Laventure
Technicien en informatique
Service des Technologies de l'Information
Université du Québec à Chicoutimi</pre>
</body>
</html>