examples of ~= operator
Rudy Zijlstra
rudy at grumpydevil.homelinux.org
Tue Dec 13 10:57:33 UTC 2011
Dears,
The man page gives me:
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.
Unfortunately, it does not give any example, and i am hoping to use this
to check if a sub-string is present in an option string received from a
client
cheers,
Rudy
More information about the dhcp-users
mailing list