Here's a handy script to be used for cleaning corpuses used by UNSW. Only tested on UNIX enviroments atm. YMMV.