You commented on a wiki post with a question, those are meant to stay evergreen so it’s not the right place for questions.
The problem here is that you defined the same named matcher twice (@davclnt
), and you used something that’s a directive and not a matcher inside the 2nd one.
I think you meant to do something like this:
@davclnt header_regexp User-Agent (?i)^DavClnt
redir @devclnt /remote.php/webdav{uri} 302