It makes the pattern "ungreedy", where it takes the minimum number of characters to match the pattern.