Arran Cudbard-Bell wrote: > if(%{User-Name} =~ /%{Calling-Station-ID}/i){ > > Doesn't expand %{Calling-Station-ID} , but thats expected.
It could... edit src/main/evaluate.c, look in function getregex(), and change the final "return T_BARE_WORD" to "return T_DOUBLE_QUOTED_STRING" After all, if you can use variables in Perl's regular expressions, why not here? > Any chance of expanding regex strings before passing them to the regex > parser ? A one-line patch. It should probably go in, because it's just too useful to leave out. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html