It should be
<regexp>^ldaps?://[\w\-.]*(:\d+)?</regexp>
instead of
<regexp>^ldaps?://[\w-.]*(:\d+)?<regexp>