@nixCraft, if you know the beginning characters of the command you'd like to repeat, say it was 'ls -la foo*' then:
'!ls' is all you need. Or, '!ls:p' will bring it to the top of your history without actually executing it , then 'Ctrl p' will pop it to the command line where you can them modify it.