Attached is IDA 5.2 plugin i've made to generate patterns from cursor location or selection.
To install - copy PatternMaker.plw to ida's plugin directory, to activate - either press Alt-0 (zero) as default hot key assignement or from edit/plugins mehu select Pattern Maker.
Plugin will generate pattern/mask string either from current cursor location (for next 24 bytes of code) or from selected code.
for some reason can't attach the archive with plugin... here is url
YouSendIt - Send large files - transfer delivery - FTP Replacement