Matching from the start or end of a string becomes more useful when it forms a part of a more complex pattern. Often such a pattern tries to match zero or more instances of a specified pattern. The * character is used to indicate zero or more matches of the pattern which it follows. Formally, this is known as a ‘quantifier’. Consider this example: