I don’t think that you can do forwards to other web applications in the same container. Forwards are used to forward WITHIN an application. But redirects should work find. You just have to make sure to add the correct context path when doing the redirect.
The matches() part is a regular expression. So you should be able to do this:
Unfortunately there isn’t much documentation currently. All we have is here: