Search tasks or torrents with regular expressions

Users can filter the task list and torrent list by name using regular expressions. Examples:

key
key1|key2
(?=.*key1)(?=.*key2)
^(?!.*key)
^(?!.*(key1|key2))
^(?!.*key1)(?=.*key2)