Introduce pattern capture filter for user field.

This way we can search both for the username and the full user format.

Fix #1456