I don't get how to create a regular expression that matches everything, except a fixed, single word. Can somebody help me?
Background: alias map for mailserver which redirects all mail to one user. /.*/ -> user1
produces a redirection loop, so i need to exclude user1
from the regexp.
Edit:
The regex should match everything, EXCEPT the single word user1. It should also match input that contains that word, i.e., user11.
i.e.: /.*/ without user1
Edit2:
POSIX Basic Regular Expressions