« first day (4779 days earlier)      last day (3 days later) » 

00:29
@MarianoSuárez-Álvarez good question. I myself do not know offhand why it does not work, you might want to ask at main site, there are pattern experts there who would know.
00:47
@MarianoSuárez-Álvarez @Nasser HoldPattern :)
Doing trace I see the problem.

Trace@MatchQ[expr,Or[ Repeated[Equal[_,_]]  ]]

gives

{{expr,a[1]==0||a[1]==1||a[1]==2},{Or[(_==_)..],{{_==_,True},True..},True..},MatchQ[a[1]==0||a[1]==1||a[1]==2,True..],False}  so it evaluated the pattern to True !
@xzczd opps, yes, I was just about to say that. I just did trace. I expected that was the problem but I was making coeffee. Coeffee is more important :)
Pattern matching for me is like regular expression. Very powerful and important, but very few are really good at it since it can become too complicated very quickly.
 
19 hours later…
20:00
@xzczd thanks!
That made me discover Verbatim… which exists since 1996!
20:38
to moderators, this user juv95 deleted their question after I spend time and gave them answer. Is this allowed? Below is screen shot. Could this be reopened? If people will delete their questions after getting an answer, I will stop answering any questions as it is just waste of time

« first day (4779 days earlier)      last day (3 days later) »