I think Emacs could easily do this: by searching with regular expression. 