What do you mean by greedy match and non greedy match ?
Question :
What do you mean by greedy match and non greedy match ?
When a special character matches as much of the search sequence (string) as possible, it is said to be a greedy match. Non greedy matches the smallest number of repetitions.