In this question I answered the regex egrep '^qu[a-z]{1}y$' filename.txt
contains {1}
which in my opinion is completely redundant.
Is there any case in a popular regex flavor (where {n}
means "The preceding item is matched exactly n times.") where adding {1}
would change the behavior?
There can be reasons for this like originally (possibly in a copy-pasted code) there was another number that was re replaced with 1
or auto generated code etc., but I am not talking about that.