Probably a regexp. Easiest to implement. Clbuttic.