Andrei Koulik <[EMAIL PROTECTED]> wrote:
> AD>   H323-DialedDigits =~ "((711|713|810|999),)*(711|713|810|999)"
> 
> AD>   should do it.
> yes, it will work well for any sequence consisted from 711,713,810 and 999
> divided by ',' (even "999,999,999"). But it is not trivial using
> regular expression pattern to match exactly that set (not a subset).
> It is more precisely  to use
> H323-DialedDigits =~ "^((711|713|810|999),){3}(711|713|810|999)$"

  Sure, but why does it matter?

  I'd rather see a broader match than a narrow one.  After I type in
such a regular expression, I'd be annoyed if I had to go back 6 months
later to change it, because the NAS added another 3 digits to the
string.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to