1. An apparatus for pattern-matching characters in a stream of received characters, the apparatus comprising: a character processing unit comprising means for storing characters, and means for comparing a received input character with at least one stored character; and a controller for controlling the character processing unit, the controller including means for receiving an input stream of characters to be pattern-matched and means for controlling the character processing unit to compare characters from the input stream with characters stored by the character processing unit.