Hi, I must have read over that string_expand() call in regex_matches(). Sorry. The problem turned out to be related to the fact that I didn't prepend '^' and append '$$' when I needed to match a specific DN. Again apologies for bothering you, Wouter Coene