Perform a regex replace on the last command and execute the result, eg !!:gs/foo/bar turns "ls foo" into "ls bar".
0
1
1
0
0