Add regexes to match and remove users.

- Refactors the regexes a bit to be more DRY.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>