See: Pattern Matching in Strings Task, Pattern Matching in Strings Algorithm, Pattern Matching in Strings System.