Let us not forget, also substitution regexs in bash...
$ ls -l /tmp/foo
ls: cannot access /tmp/foo: No such file or directory
$ !:s/foo/bar
-rw-rw-r-- 1 user user 0 Apr 17 19:12 /tmp/bar